From 1f3cf1db69c97ace5c0606e2ee0ccbf569970761 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Sun, 3 Mar 2019 08:40:40 +0000 Subject: [PATCH] JAL-3205 one more unit test case --- test/jalview/math/MatrixTest.java | 5 +++++ 1 file changed, 5 insertions(+) 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")); } -- 1.7.10.2