JAL-2742 test updates following review
authorkiramt <k.mourao@dundee.ac.uk>
Wed, 11 Oct 2017 11:11:03 +0000 (12:11 +0100)
committerkiramt <k.mourao@dundee.ac.uk>
Wed, 11 Oct 2017 11:11:03 +0000 (12:11 +0100)
test/jalview/datamodel/CigarArrayTest.java

index 20dcc96..ceb0387 100644 (file)
@@ -68,8 +68,13 @@ public class CigarArrayTest
     // we are comparing a sequence to its own subsequence (the group) + hidden
     // columns.
 
-    CigarArray cig = new CigarArray(al, hc, sg1);
+    // no hidden columns case
+    CigarArray cig = new CigarArray(al, new HiddenColumns(), sg1);
     String result = cig.getCigarstring();
+    assertEquals(result, "22M");
+
+    cig = new CigarArray(al, hc, sg1);
+    result = cig.getCigarstring();
     assertEquals(result, "1M4D9M5D3M");
 
     // group starts at hidden cols