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:
142304c
)
JAL-2742 minor test updates following review
author
kiramt
<k.mourao@dundee.ac.uk>
Wed, 11 Oct 2017 11:08:25 +0000
(12:08 +0100)
committer
kiramt
<k.mourao@dundee.ac.uk>
Wed, 11 Oct 2017 11:08:25 +0000
(12:08 +0100)
test/jalview/datamodel/CigarArrayTest.java
patch
|
blob
|
history
diff --git
a/test/jalview/datamodel/CigarArrayTest.java
b/test/jalview/datamodel/CigarArrayTest.java
index
7b5c090
..
20dcc96
100644
(file)
--- a/
test/jalview/datamodel/CigarArrayTest.java
+++ b/
test/jalview/datamodel/CigarArrayTest.java
@@
-37,7
+37,7
@@
public class CigarArrayTest
}
@Test(groups = "Functional")
}
@Test(groups = "Functional")
- public void TestConstructor()
+ public void testConstructor()
{
SequenceI seq1 = new Sequence("sq1",
"ASFDDABACBACBACBACBACBACBABCABCBACBABCAB");
{
SequenceI seq1 = new Sequence("sq1",
"ASFDDABACBACBACBACBACBACBABCABCBACBABCAB");
@@
-58,6
+58,16
@@
public class CigarArrayTest
sg1.setStartRes(2);
sg1.setEndRes(23);
sg1.setStartRes(2);
sg1.setEndRes(23);
+ // Cigar array meanings:
+ // M = match
+ // D = deletion
+ // I = insertion
+ // number preceding M/D/I is the number of residues which
+ // match/are deleted/are inserted
+ // In the CigarArray constructor only matches or deletions are created, as
+ // we are comparing a sequence to its own subsequence (the group) + hidden
+ // columns.
+
CigarArray cig = new CigarArray(al, hc, sg1);
String result = cig.getCigarstring();
assertEquals(result, "1M4D9M5D3M");
CigarArray cig = new CigarArray(al, hc, sg1);
String result = cig.getCigarstring();
assertEquals(result, "1M4D9M5D3M");