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:
6e052d1
)
JAL-2738 unit test for mapping failure case
author
gmungoc
<g.m.carstairs@dundee.ac.uk>
Fri, 6 Oct 2017 08:16:13 +0000
(09:16 +0100)
committer
gmungoc
<g.m.carstairs@dundee.ac.uk>
Fri, 6 Oct 2017 08:16:13 +0000
(09:16 +0100)
test/jalview/util/MapListTest.java
patch
|
blob
|
history
diff --git
a/test/jalview/util/MapListTest.java
b/test/jalview/util/MapListTest.java
index
f3395ca
..
d2db258
100644
(file)
--- a/
test/jalview/util/MapListTest.java
+++ b/
test/jalview/util/MapListTest.java
@@
-931,5
+931,13
@@
public class MapListTest
toRanges = compound.getToRanges();
assertEquals(toRanges.size(), 1);
assertArrayEquals(new int[] { 47, 50, 71, 126 }, toRanges.get(0));
+
+ /*
+ * method returns null if not all regions are mapped through
+ */
+ ml1 = new MapList(new int[] { 1, 50 }, new int[] { 101, 150 }, 1, 1);
+ ml2 = new MapList(new int[] { 131, 180 }, new int[] { 201, 250 }, 1, 3);
+ compound = ml1.traverse(ml2);
+ assertNull(compound);
}
}