JAL-2349 fix off by one when resolving columns for sequence associated contact matrix
[jalview.git] / test / jalview / analysis / AlignmentUtilsTests.java
index 1193c39..4baa384 100644 (file)
@@ -2630,6 +2630,11 @@ public class AlignmentUtilsTests
     assertNotNull(
             "No contact matrix recovered after reference annotation transfer",
             cl);
+    // semantics of sequence associated contact list is slightly tricky - column 3 in alignment should have data
+    cl = al.getContactListFor(alan, 3);
+    assertNotNull(
+            "Contact matrix should have data for last position in sequence",
+            cl);
 
     ContactMatrixI cm2 = new SeqDistanceContactMatrix(4);
     dssq.addContactList(cm2);