fix: create value var
This commit is contained in:
parent
1f8bb5800b
commit
a13feba991
@ -1,6 +1,7 @@
|
||||
def test(func: callable, params, expected_value, title: str, description = None):
|
||||
print(title, end=" ")
|
||||
if (func(*params) == expected_value):
|
||||
value = func(*params)
|
||||
if (value == expected_value):
|
||||
print("[OK]")
|
||||
return
|
||||
print ("[ERROR]")
|
||||
|
Loading…
Reference in New Issue
Block a user