Skip to content

Commit 53045e7

Browse files
committed
fix test
1 parent 5c385ed commit 53045e7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/dialects/vmath/test_basic.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,26 +70,26 @@ def test_add_scalar_list():
7070

7171

7272
@basic.union([vmath])
73-
def mul_kernel(x, y):
74-
return vmath.mul(x, y)
73+
def mult_kernel(x, y):
74+
return vmath.mult(x, y)
7575

7676

77-
def test_mul_lists():
77+
def test_mult_lists():
7878
a = ilist.IList([1.0, 2.0, 3.0], elem=types.Float)
7979
b = ilist.IList([4.0, 5.0, 6.0], elem=types.Float)
8080
truth = np.array([1.0, 2.0, 3.0]) * np.array([4.0, 5.0, 6.0])
81-
out = mul_kernel(a, b)
81+
out = mult_kernel(a, b)
8282
assert isinstance(out, ilist.IList)
8383
assert out.elem == types.Float
8484
assert np.allclose(out, truth)
8585

8686

87-
def test_mul_scalar_list():
87+
def test_mult_scalar_list():
8888
a = 3.0
8989
b = ilist.IList([4.0, 5.0, 6.0], elem=types.Float)
9090
truth = 3.0 * np.array([4.0, 5.0, 6.0])
91-
out = mul_kernel(a, b)
92-
out2 = mul_kernel(b, a)
91+
out = mult_kernel(a, b)
92+
out2 = mult_kernel(b, a)
9393

9494
assert isinstance(out, ilist.IList)
9595
assert out.elem == types.Float

0 commit comments

Comments
 (0)