Skip to content

Commit db96676

Browse files
committed
Add CFD tests
1 parent 018b098 commit db96676

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

dpnp/tests/test_sycl_queue.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1470,6 +1470,14 @@ def test_interp(device, left, right, period):
14701470
assert_sycl_queue_equal(result.sycl_queue, x.sycl_queue)
14711471

14721472

1473+
@pytest.mark.parametrize("device", valid_dev, ids=dev_ids)
1474+
def test_erf(device):
1475+
x = dpnp.linspace(-3, 3, num=5, device=device)
1476+
1477+
result = dpnp.special.erf(x)
1478+
assert_sycl_queue_equal(result.sycl_queue, x.sycl_queue)
1479+
1480+
14731481
@pytest.mark.parametrize("device", valid_dev, ids=dev_ids)
14741482
class TestLinAlgebra:
14751483
@pytest.mark.parametrize(

dpnp/tests/test_usm_type.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,6 +1279,13 @@ def test_choose(usm_type_x, usm_type_ind):
12791279
assert z.usm_type == du.get_coerced_usm_type([usm_type_x, usm_type_ind])
12801280

12811281

1282+
@pytest.mark.parametrize("usm_type", list_of_usm_types)
1283+
def test_erf(usm_type):
1284+
x = dpnp.linspace(-3, 3, num=5, usm_type=usm_type)
1285+
y = dpnp.special.erf(x)
1286+
assert x.usm_type == y.usm_type == usm_type
1287+
1288+
12821289
class TestInterp:
12831290
@pytest.mark.parametrize("usm_type_x", list_of_usm_types)
12841291
@pytest.mark.parametrize("usm_type_xp", list_of_usm_types)

0 commit comments

Comments
 (0)