Skip to content

Commit be70bbb

Browse files
committed
Fixed bad comparison to known Smith normal form
1 parent 9d7192c commit be70bbb

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

test/runtests.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,13 @@ Aqua.test_all(NormalForms; project_toml_formatting=false)
132132
[2 0 0; 1 4 0; 2 0 8],
133133
[1 0 0; 0 6 0; 0 3 4],
134134
)
135-
for M in bad_3d_matrices
135+
known_3d_snfs = (
136+
[1, 8, 8],
137+
[1, 1, 24]
138+
)
139+
for (M,K) in zip(bad_3d_matrices, known_3d_snfs)
136140
S = snf(M)
137-
@test S.S == diagm([1, 8, 8])
141+
@test S.S == diagm(K)
138142
@test M == Int.(S.U \ S.S / S.V)
139143
for k in 1:3
140144
N = copy(M)

0 commit comments

Comments
 (0)