File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,7 @@ def test_cross(x1_x2_kw):
131
131
132
132
res = _array_module .linalg .cross (x1 , x2 , ** kw )
133
133
134
+ # TODO: Replace result_type() with a helper function
134
135
assert res .dtype == _array_module .result_type (x1 , x2 ), "cross() did not return the correct dtype"
135
136
assert res .shape == shape , "cross() did not return the correct shape"
136
137
@@ -253,6 +254,7 @@ def test_inv(x):
253
254
* two_mutual_arrays (numeric_dtype_objects )
254
255
)
255
256
def test_matmul (x1 , x2 ):
257
+ # TODO: Make this also test the @ operator
256
258
if (x1 .shape == () or x2 .shape == ()
257
259
or len (x1 .shape ) == len (x2 .shape ) == 1 and x1 .shape != x2 .shape
258
260
or len (x1 .shape ) == 1 and len (x2 .shape ) >= 2 and x1 .shape [0 ] != x2 .shape [- 2 ]
@@ -266,6 +268,7 @@ def test_matmul(x1, x2):
266
268
else :
267
269
res = _array_module .linalg .matmul (x1 , x2 )
268
270
271
+ # TODO: Replace result_type() with a helper function
269
272
assert res .dtype == _array_module .result_type (x1 , x2 ), "matmul() did not return the correct dtype"
270
273
271
274
if len (x1 .shape ) == len (x2 .shape ) == 1 :
You can’t perform that action at this time.
0 commit comments