JAL-2777 test for the whitespace chain
authorJim Procter <jprocter@issues.jalview.org>
Mon, 16 Oct 2017 14:03:40 +0000 (15:03 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Tue, 17 Oct 2017 13:19:29 +0000 (14:19 +0100)
test/jalview/ext/rbvi/chimera/AtomSpecModelTest.java

index c9e1cad..63d5e4e 100644 (file)
@@ -29,6 +29,11 @@ public class AtomSpecModelTest
     assertEquals(model.getAtomSpec(), "#0:1-4.B,5-9.C|#1:2-5.A,8.A,5-10.B");
     model.addRange(0, 3, 10, "C"); // subsumes 5-9
     assertEquals(model.getAtomSpec(), "#0:1-4.B,3-10.C|#1:2-5.A,8.A,5-10.B");
+    model.addRange(5, 25, 35, " "); // empty chain code - e.g. from homology
+                                    // modelling
+    assertEquals(model.getAtomSpec(),
+            "#0:1-4.B,3-10.C|#1:2-5.A,8.A,5-10.B|#5:25-35.");
+
   }
 
 }