Matthias Bisping 13513db5a1 refactoring
2022-04-14 15:22:41 +02:00

9 lines
151 B
Python

from image_prediction.utils.generic import until
def test_until():
def f(x):
return x / 2
assert until(lambda x: x == 0, f, 1) == 0