test-kivy-app/kivy_venv/lib/python3.11/site-packages/kivy/tests/test_compat.py

7 lines
186 B
Python
Raw Normal View History

2024-09-15 12:12:16 +00:00
from kivy.compat import isclose
def test_isclose():
assert isclose(1.1, 1.1), 'Close floats should assert True'
assert not isclose(1.1, 2.1), 'Close floats should assert True'