File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,10 +8,6 @@ tests/test_mathematical.py::TestGradient::test_gradient_y1[array2]
88tests/test_mathematical.py::TestGradient::test_gradient_y1_dx[2-array0]
99tests/test_mathematical.py::TestGradient::test_gradient_y1_dx[2-array1]
1010tests/test_mathematical.py::TestGradient::test_gradient_y1_dx[2-array2]
11- tests/test_random.py::test_check_otput[random]
12- tests/test_random.py::test_check_otput[random_sample]
13- tests/test_random.py::test_check_otput[ranf]
14- tests/test_random.py::test_check_otput[sample]
1511tests/test_random.py::TestDistributionsMultinomial::test_check_sum
1612tests/test_random.py::TestDistributionsMultinomial::test_moments
1713tests/test_random.py::TestDistributionsMultinomial::test_seed
Original file line number Diff line number Diff line change @@ -84,19 +84,15 @@ def test_input_shape(func):
8484 ids = ['random' , 'random_sample' ,
8585 'ranf' , 'sample' ,
8686 'rand' ])
87- def test_check_otput (func ):
87+ def test_check_output (func ):
8888 shape = (10 , 5 )
8989 size = 10 * 5
9090 if func == dpnp .random .rand :
9191 res = func (size )
9292 else :
9393 res = func (shape )
94- # assert numpy.all(res >= 0)
95- # assert numpy.all(res < 1)
96- res_as_numpy = dpnp .asnumpy (res )
97- for i in range (res_as_numpy .size ):
98- assert res_as_numpy [i ] >= 0.0
99- assert res_as_numpy [i ] < 1.0
94+ assert dpnp .all (res >= 0 )
95+ assert dpnp .all (res < 1 )
10096
10197
10298@pytest .mark .parametrize ("func" ,
You can’t perform that action at this time.
0 commit comments