Skip to content

Commit b23a367

Browse files
authored
tests: could fail on 32 bit archs (edge behavior) (#629)
1 parent 0faa9fe commit b23a367

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_axis.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -325,12 +325,12 @@ def test_log_transform(self):
325325

326326
assert a.index(-1) == 2
327327
assert a.index(0.99) == -1
328-
assert a.index(1.0) == 0
328+
assert a.index(1.001) == 0
329329
assert a.index(9.99) == 0
330-
assert a.index(10.0) == 1
330+
assert a.index(10.01) == 1
331331
assert a.index(99.9) == 1
332-
assert a.index(100) == 2
333-
assert a.index(1000) == 2
332+
assert a.index(100.01) == 2
333+
assert a.index(1000.1) == 2
334334

335335
assert a.bin(0)[0] == approx(1e0)
336336
assert a.bin(1)[0] == approx(1e1)

0 commit comments

Comments
 (0)