File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -8,10 +8,6 @@ tests/test_mathematical.py::TestGradient::test_gradient_y1[array2]
8
8
tests/test_mathematical.py::TestGradient::test_gradient_y1_dx[2-array0]
9
9
tests/test_mathematical.py::TestGradient::test_gradient_y1_dx[2-array1]
10
10
tests/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]
15
11
tests/test_random.py::TestDistributionsMultinomial::test_check_sum
16
12
tests/test_random.py::TestDistributionsMultinomial::test_moments
17
13
tests/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):
84
84
ids = ['random' , 'random_sample' ,
85
85
'ranf' , 'sample' ,
86
86
'rand' ])
87
- def test_check_otput (func ):
87
+ def test_check_output (func ):
88
88
shape = (10 , 5 )
89
89
size = 10 * 5
90
90
if func == dpnp .random .rand :
91
91
res = func (size )
92
92
else :
93
93
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 )
100
96
101
97
102
98
@pytest .mark .parametrize ("func" ,
You can’t perform that action at this time.
0 commit comments