mirror of
https://bitbucket.org/Mattrixwv/matrix.git
synced 2025-12-06 23:13:57 -05:00
Updated Sonarqube findings
This commit is contained in:
@@ -119,38 +119,43 @@ public class TestBigIntegerMatrix{
|
||||
public void testEquals(){
|
||||
//1x1
|
||||
BigIntegerMatrix matrix = new BigIntegerMatrix(grid1);
|
||||
assertTrue("BigIntegerMatrix 1x1 failed equals BigIntegerMatrix.", matrix.equals(matrix));
|
||||
boolean gridEquals = matrix.equals(matrix);
|
||||
assertTrue("BigIntegerMatrix 1x1 failed equals BigIntegerMatrix.", gridEquals);
|
||||
@SuppressWarnings("unlikely-arg-type")
|
||||
boolean gridEquals = matrix.equals(grid1);
|
||||
assertTrue("BigIntegerMatrix 1x1 failed equals BigInteger[][].", gridEquals);
|
||||
boolean gridEquals1 = matrix.equals(grid1);
|
||||
assertTrue("BigIntegerMatrix 1x1 failed equals BigInteger[][].", gridEquals1);
|
||||
|
||||
//2x2
|
||||
matrix = new BigIntegerMatrix(grid2);
|
||||
assertTrue("BigIntegerMatrix 2x2 failed equals BigIntegerMatrix.", matrix.equals(matrix));
|
||||
boolean gridEquals2 = matrix.equals(matrix);
|
||||
assertTrue("BigIntegerMatrix 2x2 failed equals BigIntegerMatrix.", gridEquals2);
|
||||
@SuppressWarnings("unlikely-arg-type")
|
||||
boolean gridEquals2 = matrix.equals(grid2);
|
||||
assertTrue("BigIntegerMatrix 2x2 failed equals BigInteger[][].", gridEquals2);
|
||||
boolean gridEquals21 = matrix.equals(grid2);
|
||||
assertTrue("BigIntegerMatrix 2x2 failed equals BigInteger[][].", gridEquals21);
|
||||
|
||||
//3x3
|
||||
matrix = new BigIntegerMatrix(grid3);
|
||||
assertTrue("BigIntegerMatrix 3x3 failed equals BigIntegerMatrix.", matrix.equals(matrix));
|
||||
boolean gridEquals3 = matrix.equals(matrix);
|
||||
assertTrue("BigIntegerMatrix 3x3 failed equals BigIntegerMatrix.", gridEquals3);
|
||||
@SuppressWarnings("unlikely-arg-type")
|
||||
boolean gridEquals3 = matrix.equals(grid3);
|
||||
assertTrue("BigIntegerMatrix 3x3 failed equals BigInteger[][].", gridEquals3);
|
||||
boolean gridEquals31 = matrix.equals(grid3);
|
||||
assertTrue("BigIntegerMatrix 3x3 failed equals BigInteger[][].", gridEquals31);
|
||||
|
||||
//4x4
|
||||
matrix = new BigIntegerMatrix(grid4);
|
||||
assertTrue("BigIntegerMatrix 4x4 failed equals BigIntegerMatrix.", matrix.equals(matrix));
|
||||
boolean gridEquals4 = matrix.equals(matrix);
|
||||
assertTrue("BigIntegerMatrix 4x4 failed equals BigIntegerMatrix.", gridEquals4);
|
||||
@SuppressWarnings("unlikely-arg-type")
|
||||
boolean gridEquals4 = matrix.equals(grid4);
|
||||
assertTrue("BigIntegerMatrix 4x4 failed equals BigInteger[][].", gridEquals4);
|
||||
boolean gridEquals41 = matrix.equals(grid4);
|
||||
assertTrue("BigIntegerMatrix 4x4 failed equals BigInteger[][].", gridEquals41);
|
||||
|
||||
//10x10
|
||||
matrix = new BigIntegerMatrix(grid10);
|
||||
assertTrue("BigIntegerMatrix = 10x10 failed equals BigIntegerMatrix.", matrix.equals(matrix));
|
||||
boolean gridEquals10 = matrix.equals(matrix);
|
||||
assertTrue("BigIntegerMatrix = 10x10 failed equals BigIntegerMatrix.", gridEquals10);
|
||||
@SuppressWarnings("unlikely-arg-type")
|
||||
boolean gridEquals10 = matrix.equals(grid10);
|
||||
assertTrue("BigIntegerMatrix 10x10 failed equals BigInteger[][].", gridEquals10);
|
||||
boolean gridEquals101 = matrix.equals(grid10);
|
||||
assertTrue("BigIntegerMatrix 10x10 failed equals BigInteger[][].", gridEquals101);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user