Skip to content

Commit

Permalink
Merge branch 'rk-funcs' of github.com:rohany/cunumeric into rk-funcs
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohan Yadav committed Feb 12, 2024
2 parents 8f87765 + f35ea97 commit 01ef150
Showing 1 changed file with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions tests/integration/test_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,25 @@
import cunumeric as cn


@pytest.mark.parametrize("args", [
((100,), 1, -1, None, None),
((100,), 2, -1, None, None),
((100,), 3, -1, None, None),
((100,), 2, 0, None, None),
((10, 10), 2, -1, None, None),
((10, 10), 2, 0, None, None),
((10, 10), 2, 1, None, None),
((100,), 3, -1, [1.0, 2.0], None),
((100,), 3, -1, None, [1.0, 2.0]),
((100,), 3, -1, [1.0, 2.0], [1.0, 2.0]),
((5,), 5, -1, None, None),
((5,), 6, 0, None, None),
((5,5), 5, 1, None, None),
((5,5), 6, 1, None, None),
])
@pytest.mark.parametrize(
"args",
[
((100,), 1, -1, None, None),
((100,), 2, -1, None, None),
((100,), 3, -1, None, None),
((100,), 2, 0, None, None),
((10, 10), 2, -1, None, None),
((10, 10), 2, 0, None, None),
((10, 10), 2, 1, None, None),
((100,), 3, -1, [1.0, 2.0], None),
((100,), 3, -1, None, [1.0, 2.0]),
((100,), 3, -1, [1.0, 2.0], [1.0, 2.0]),
((5,), 5, -1, None, None),
((5,), 6, 0, None, None),
((5, 5), 5, 1, None, None),
((5, 5), 6, 1, None, None),
],
)
def test_diff(args):
shape, n, axis, prepend, append = args
num = np.random.random(shape)
Expand Down

0 comments on commit 01ef150

Please sign in to comment.