Skip to content

Commit

Permalink
Use assert_allclose
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwhite committed Jan 20, 2025
1 parent 37fee5b commit fd7fdf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cubed/tests/test_fft.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest
from numpy.testing import assert_array_equal
from numpy.testing import assert_allclose

import cubed
import cubed.array_api as xp
Expand All @@ -17,7 +17,7 @@ def test_fft(funcname, n):
a = cubed.from_array(an, chunks=(1, 10))
b = cb_fft(a, n=n)

assert_array_equal(b.compute(), bn)
assert_allclose(b.compute(), bn)


def test_fft_chunked_axis_fails():
Expand Down

0 comments on commit fd7fdf3

Please sign in to comment.