15 lines
309 B
Python
15 lines
309 B
Python
from cube.game.compute import *
|
|
|
|
def test_matmul():
|
|
a = [[1, 2, 3], [4, 5, 6]]
|
|
b = [[7, 8], [10, 11], [12, 13]]
|
|
|
|
expected_value = [[63.0, 69.0], [150.0, 165.0]]
|
|
expected_type = Matrix
|
|
|
|
result = matmul(a,b)
|
|
|
|
assert result == expected_value
|
|
assert isinstance(result, expected_type)
|
|
|