Fix more sonarqube warnings

This commit is contained in:
2026-01-26 16:32:16 -05:00
parent e1e121b879
commit 62eefe9615
5 changed files with 56 additions and 52 deletions

View File

@@ -2549,17 +2549,18 @@ public class TestModMatrix{
ModMatrix matrix = new ModMatrix(negativeGrid10, MOD);
assertEquals(
"[25, 24, 23, 22, 21, 20, 19, 18, 17, 16]\n" +
"[15, 14, 13, 12, 11, 10, 9, 8, 7, 6]\n" +
"[5, 4, 3, 2, 1, 0, 25, 24, 23, 22]\n" +
"[21, 20, 19, 18, 17, 16, 15, 14, 13, 12]\n" +
"[11, 10, 9, 8, 7, 6, 5, 4, 3, 2]\n" +
"[1, 0, 25, 24, 23, 22, 21, 20, 19, 18]\n" +
"[17, 16, 15, 14, 13, 12, 11, 10, 9, 8]\n" +
"[7, 6, 5, 4, 3, 2, 1, 0, 25, 24]\n" +
"[23, 22, 21, 20, 19, 18, 17, 16, 15, 14]\n" +
"[13, 12, 11, 10, 9, 8, 7, 6, 5, 4]\n" +
"mod(26)",
"""
[25, 24, 23, 22, 21, 20, 19, 18, 17, 16]
[15, 14, 13, 12, 11, 10, 9, 8, 7, 6]
[5, 4, 3, 2, 1, 0, 25, 24, 23, 22]
[21, 20, 19, 18, 17, 16, 15, 14, 13, 12]
[11, 10, 9, 8, 7, 6, 5, 4, 3, 2]
[1, 0, 25, 24, 23, 22, 21, 20, 19, 18]
[17, 16, 15, 14, 13, 12, 11, 10, 9, 8]
[7, 6, 5, 4, 3, 2, 1, 0, 25, 24]
[23, 22, 21, 20, 19, 18, 17, 16, 15, 14]
[13, 12, 11, 10, 9, 8, 7, 6, 5, 4]
mod(26)""",
matrix.toString());
}
@@ -2609,5 +2610,4 @@ public class TestModMatrix{
{0, 0, 0, 0, 0, 0, 0, 0, 0, 1}
}, matrix.copyGrid());
}
}