git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d90895b
)
JAL-3205 one more unit test case
author
gmungoc
<g.m.carstairs@dundee.ac.uk>
Sun, 3 Mar 2019 08:40:40 +0000
(08:40 +0000)
committer
gmungoc
<g.m.carstairs@dundee.ac.uk>
Sun, 3 Mar 2019 08:40:40 +0000
(08:40 +0000)
test/jalview/math/MatrixTest.java
patch
|
blob
|
history
diff --git
a/test/jalview/math/MatrixTest.java
b/test/jalview/math/MatrixTest.java
index
8af10b0
..
fa446e4
100644
(file)
--- 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"));
}