From: gmungoc Date: Sun, 3 Mar 2019 08:40:40 +0000 (+0000) Subject: JAL-3205 one more unit test case X-Git-Tag: Release_2_11_0~17^2~59^2~2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=1f3cf1db69c97ace5c0606e2ee0ccbf569970761;p=jalview.git JAL-3205 one more unit test case --- diff --git a/test/jalview/math/MatrixTest.java b/test/jalview/math/MatrixTest.java index 8af10b0..fa446e4 100644 --- a/test/jalview/math/MatrixTest.java +++ b/test/jalview/math/MatrixTest.java @@ -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")); }