@@ -20,20 +20,20 @@ def test_arctan2():
20
20
21
21
22
22
def test_bitwise_and ():
23
- assert_allclose (np .bitwise_and (0. 5 , 0. 6 ),
24
- bitwise_and (0. 5 , 0. 6 ), atol = 1e-7 , check_dtype = False )
23
+ assert_allclose (np .bitwise_and (5 , 6 ),
24
+ bitwise_and (5 , 6 ), atol = 1e-7 , check_dtype = False )
25
25
26
26
27
27
28
28
def test_bitwise_or ():
29
- assert_allclose (np .bitwise_or (0. 5 , 0. 6 ),
30
- bitwise_or (0. 5 , 0. 6 ), atol = 1e-7 , check_dtype = False )
29
+ assert_allclose (np .bitwise_or (5 , 6 ),
30
+ bitwise_or (5 , 6 ), atol = 1e-7 , check_dtype = False )
31
31
32
32
33
33
34
34
def test_bitwise_xor ():
35
- assert_allclose (np .bitwise_xor (0. 5 , 0. 6 ),
36
- bitwise_xor (0. 5 , 0. 6 ), atol = 1e-7 , check_dtype = False )
35
+ assert_allclose (np .bitwise_xor (5 , 6 ),
36
+ bitwise_xor (5 , 6 ), atol = 1e-7 , check_dtype = False )
37
37
38
38
39
39
@@ -86,8 +86,8 @@ def test_fmod():
86
86
87
87
88
88
def test_gcd ():
89
- assert_allclose (np .gcd (0. 5 , 0. 6 ),
90
- gcd (0. 5 , 0. 6 ), atol = 1e-7 , check_dtype = False )
89
+ assert_allclose (np .gcd (5 , 6 ),
90
+ gcd (5 , 6 ), atol = 1e-7 , check_dtype = False )
91
91
92
92
93
93
@@ -116,20 +116,20 @@ def test_hypot():
116
116
117
117
118
118
def test_lcm ():
119
- assert_allclose (np .lcm (0. 5 , 0. 6 ),
120
- lcm (0. 5 , 0. 6 ), atol = 1e-7 , check_dtype = False )
119
+ assert_allclose (np .lcm (5 , 6 ),
120
+ lcm (5 , 6 ), atol = 1e-7 , check_dtype = False )
121
121
122
122
123
123
124
124
def test_ldexp ():
125
- assert_allclose (np .ldexp (0.5 , 0. 6 ),
126
- ldexp (0.5 , 0. 6 ), atol = 1e-7 , check_dtype = False )
125
+ assert_allclose (np .ldexp (0.5 , 6 ),
126
+ ldexp (0.5 , 6 ), atol = 1e-7 , check_dtype = False )
127
127
128
128
129
129
130
130
def test_left_shift ():
131
- assert_allclose (np .left_shift (0. 5 , 0. 6 ),
132
- left_shift (0. 5 , 0. 6 ), atol = 1e-7 , check_dtype = False )
131
+ assert_allclose (np .left_shift (5 , 6 ),
132
+ left_shift (5 , 6 ), atol = 1e-7 , check_dtype = False )
133
133
134
134
135
135
@@ -176,8 +176,8 @@ def test_logical_xor():
176
176
177
177
178
178
def test_matmul ():
179
- assert_allclose (np .matmul (0.5 , 0.6 ),
180
- matmul (0.5 , 0.6 ), atol = 1e-7 , check_dtype = False )
179
+ assert_allclose (np .matmul ([ 0.5 ], [ 0.6 ] ),
180
+ matmul ([ 0.5 ], [ 0.6 ] ), atol = 1e-7 , check_dtype = False )
181
181
182
182
183
183
@@ -230,8 +230,8 @@ def test_remainder():
230
230
231
231
232
232
def test_right_shift ():
233
- assert_allclose (np .right_shift (0. 5 , 0. 6 ),
234
- right_shift (0. 5 , 0. 6 ), atol = 1e-7 , check_dtype = False )
233
+ assert_allclose (np .right_shift (5 , 6 ),
234
+ right_shift (5 , 6 ), atol = 1e-7 , check_dtype = False )
235
235
236
236
237
237
0 commit comments