ft_transcendence/tests/utils.py
2023-11-06 14:36:28 +01:00

9 lines
293 B
Python

def test(value, expected_value, title, description = None):
print(title, end=" ")
if (value == expected_value):
print("[OK]")
return
print ("[ERROR]")
print ("expected", expected_value, ", got", value)
if not description is None:
print (description)