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:
a7ea1ba
)
JAL-1270 testToString added
author
gmungoc
<g.m.carstairs@dundee.ac.uk>
Thu, 4 Jun 2015 13:43:12 +0000
(14:43 +0100)
committer
gmungoc
<g.m.carstairs@dundee.ac.uk>
Thu, 4 Jun 2015 13:43:12 +0000
(14:43 +0100)
test/jalview/util/MapListTest.java
patch
|
blob
|
history
diff --git
a/test/jalview/util/MapListTest.java
b/test/jalview/util/MapListTest.java
index
f69fe40
..
bfb0837
100644
(file)
--- a/
test/jalview/util/MapListTest.java
+++ b/
test/jalview/util/MapListTest.java
@@
-498,4
+498,15
@@
public class MapListTest
assertEquals(prettyPrint(ml.getToRanges()),
prettyPrint(ml2.getFromRanges()));
}
+
+ @Test
+ public void testToString()
+ {
+ MapList ml = new MapList(new int[]
+ { 1, 5, 10, 15, 25, 20 }, new int[]
+ { 51, 1 }, 1, 3);
+ String s = ml.toString();
+ assertEquals("From (1:3) [ [1, 5] [10, 15] [25, 20] ] To [ [51, 1] ]",
+ s);
+ }
}