Skip to content

Commit

Permalink
Remove invalid test and add the params to basic test.
Browse files Browse the repository at this point in the history
  • Loading branch information
yimoj committed May 26, 2023
1 parent d14fe86 commit 9cdbf7a
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions tests/integration/test_diag_indices.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@
import cunumeric as num


def test_diag_indices_default_ndim():
a_np = np.diag_indices(10)
a_num = num.diag_indices(10)
@pytest.mark.parametrize("n", [10, -10.5, -1])
def test_diag_indices_default_ndim(n):
a_np = np.diag_indices(n)
a_num = num.diag_indices(n)
assert np.array_equal(a_np, a_num)


Expand All @@ -42,11 +43,6 @@ def test_diag_indices(n, ndim):


class TestDiagIndicesErrors:
@pytest.mark.parametrize("n", [-10.5, -1])
def test_negative_n(self, n):
with pytest.raises(ValueError):
num.diag_indices(n)

@pytest.mark.xfail
@pytest.mark.parametrize("n", [-10.5, -1])
def test_negative_n_DIVERGENCE(self, n):
Expand Down

0 comments on commit 9cdbf7a

Please sign in to comment.