Skip to content

Commit

Permalink
TST: add test for dxdt on axis 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob-Stevens-Haas committed May 14, 2024
1 parent f0d566d commit a76b94b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ def test_axis():
shape2 = ts.shape
test3 = dxdt(ts, ts, axis=1).shape
assert shape2 == test3
n = 4
x3d = np.tile(np.arange(n), (n, n, 1))
test_4 = dxdt(x3d, np.arange(n), axis=2)
np.testing.assert_array_equal(test_4, np.ones((n,n,n)))


def test_empty():
Expand Down

0 comments on commit a76b94b

Please sign in to comment.