AngyalRobert

def teszt(sikeres_teszt):

Oct 29th, 2021 (edited)
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. def teszt(sikeres_teszt):
  2.     """ Egy teszt eredményének megjelenítése. """
  3.     sorszam = sys._getframe(1).f_lineno # A hívó sorának száma
  4.     if sikeres_teszt:
  5.         msg = "A(z) {0}. sorban álló teszt sikeres.".format(sorszam)
  6.     else:
  7.         msg = ("A(z) {0}. sorban álló teszt SIKERTELEN.".format(sorszam))
  8.     print( msg)
  9.  
Add Comment
Please, Sign In to add comment