Add test for matrix *= operator

This commit is contained in:
Arjan Molenaar 2021-03-08 21:25:22 +01:00
parent 9456b0a6ad
commit 9112ae5b86
No known key found for this signature in database
GPG Key ID: BF977B918996CB13

9
tests/test_matrix.py Normal file
View File

@ -0,0 +1,9 @@
from gaphas.matrix import Matrix
def test_multiply_equals_should_result_in_same_matrix():
m1 = Matrix()
m2 = m1
m2 *= Matrix(20, 20)
assert m1 is m2