Skip to content
Prev Previous commit
fault-tolerant float equality
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
  • Loading branch information
arihant2math committed Feb 19, 2025
commit 24a12b1016df38a3f1d3fc52c699ba0f008c96ed
2 changes: 1 addition & 1 deletion extra_tests/snippets/builtins_ctypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,4 @@ class c_bool(_SimpleCData):
f = c_float(3.14)
# s = create_string_buffer(b'\000' * 32)
assert i.value == 42
assert f.value == 3.14
assert abs(f.value - 3.14) < 1e-06