fix: create value var

This commit is contained in:
starnakin 2023-11-06 17:26:27 +01:00
parent 1f8bb5800b
commit a13feba991

View File

@ -1,6 +1,7 @@
def test(func: callable, params, expected_value, title: str, description = None): def test(func: callable, params, expected_value, title: str, description = None):
print(title, end=" ") print(title, end=" ")
if (func(*params) == expected_value): value = func(*params)
if (value == expected_value):
print("[OK]") print("[OK]")
return return
print ("[ERROR]") print ("[ERROR]")