We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a642929 commit fbe3cf0Copy full SHA for fbe3cf0
array_api_tests/test_elementwise_functions.py
@@ -116,6 +116,7 @@ def test_add(args):
116
x1, x2 = args
117
sanity_check(x1, x2)
118
a = _array_module.add(x1, x2)
119
+
120
b = _array_module.add(x2, x1)
121
# add is commutative
122
assert_exactly_equal(a, b)
@@ -738,7 +739,11 @@ def test_logical_xor(args):
738
739
def test_multiply(args):
740
741
- # a = _array_module.multiply(x1, x2)
742
+ a = _array_module.multiply(x1, x2)
743
744
+ b = _array_module.multiply(x2, x1)
745
+ # multiply is commutative
746
+ assert_exactly_equal(a, b)
747
748
@given(numeric_scalars)
749
def test_negative(x):
0 commit comments