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:
4d5c986
)
JAL-2114 explicit invalid test cases added
author
gmungoc
<g.m.carstairs@dundee.ac.uk>
Fri, 20 May 2016 20:00:28 +0000
(21:00 +0100)
committer
gmungoc
<g.m.carstairs@dundee.ac.uk>
Fri, 20 May 2016 20:00:28 +0000
(21:00 +0100)
test/jalview/util/DnaUtilsTest.java
patch
|
blob
|
history
diff --git
a/test/jalview/util/DnaUtilsTest.java
b/test/jalview/util/DnaUtilsTest.java
index
bb3cc5b
..
6623c13
100644
(file)
--- a/
test/jalview/util/DnaUtilsTest.java
+++ b/
test/jalview/util/DnaUtilsTest.java
@@
-124,6
+124,19
@@
public class DnaUtilsTest
{
// expected
}
+
+ /*
+ * nested joins are not allowed; just as well since this fails to parse
+ * (splitting tokens by comma fragments the inner join expression)
+ */
+ assertNull(DnaUtils
+ .parseLocation("join(1..2,join(4..5,10..12),18..22)"));
+ /*
+ * complement may not enclose multiple ranges
+ * parsing fails for the same reason
+ */
+ assertNull(DnaUtils
+ .parseLocation("join(complement(36618..36700,4000..4200),86988..87064)"));
}
}