Matthias Bisping b4f279c549 test for until
2022-04-13 13:12:19 +02:00

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