Skip to content

Commit

Permalink
Further tests
Browse files Browse the repository at this point in the history
  • Loading branch information
teschlg committed Oct 30, 2024
1 parent dba8b42 commit 22c6eb2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_ec.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ def test_EC():
assert Q in ec
assert P + O == P
assert O + P == P
assert P - P == O
assert P + P == 2 * P
R = O
for i in range(5):
assert i * P == R
Expand Down
2 changes: 2 additions & 0 deletions tests/test_la.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@

def test_Matrix():
M = Matrix([[1, 2, 3], [4, 5, 6], [7, 8, 12]])
assert 2 * M - M == M
M.map(Fraction)
Mi = M.inv()
assert M * Mi == M.eye()

Z_11 = Zmod(11)
assert 2 * M - M == M
M = Matrix([[1, 2, 3], [4, 5, 6], [7, 8, 12]], ring=Z_11)
Mi = M.inv()
assert M * Mi == M.eye()

0 comments on commit 22c6eb2

Please sign in to comment.