9 lines
158 B
Python
9 lines
158 B
Python
from image_prediction.utils.generic import until
|
|
|
|
|
|
def test_until():
|
|
def f(x):
|
|
return x / 2
|
|
|
|
assert until(lambda x, y: x - y == 0, f, 1) == 0
|