Skip to content

Commit 5a6824e

Browse files
committed
add a new test
1 parent 8b38fd6 commit 5a6824e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dpnp/tests/test_arraymanipulation.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,12 @@ def test_asfarray2(self, dtype, data, data_dtype):
3838

3939
# This is only for coverage with NumPy 2.0 and above
4040
def test_asfarray_coverage(self):
41-
expected = [1.0, 2.0, 3.0]
41+
expected = dpnp.array([1.0, 2.0, 3.0])
4242
result = dpnp.asfarray([1, 2, 3])
43+
assert_array_equal(result, expected)
4344

45+
expected = dpnp.array([1.0, 2.0, 3.0], dtype=dpnp.float32)
46+
result = dpnp.asfarray([1, 2, 3], dtype=dpnp.float32)
4447
assert_array_equal(result, expected)
4548

4649

0 commit comments

Comments
 (0)