JAL-3205 one more unit test case
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Sun, 3 Mar 2019 08:40:40 +0000 (08:40 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Sun, 3 Mar 2019 08:40:40 +0000 (08:40 +0000)
test/jalview/math/MatrixTest.java

index 8af10b0..fa446e4 100644 (file)
@@ -576,6 +576,11 @@ public class MatrixTest
     assertFalse(m2.equals(m1));
     assertEquals(m1.hashCode(), m2.hashCode());
 
+    // must be same shape
+    values2 = new double[][] { { 1, 2, 3 } };
+    m2 = new Matrix(values2);
+    assertFalse(m2.equals(m1));
+
     assertFalse(m1.equals(null));
     assertFalse(m1.equals("foo"));
   }