JAL-2541 clean unit test of cut/undo (ungapped sequence)
[jalview.git] / test / jalview / commands / EditCommandTest.java
index ed37670..6ed0a2c 100644 (file)
@@ -787,7 +787,7 @@ public class EditCommandTest
          * number of features within the cut region i.e. by
          * func(length of cut)
          */
-        String msg = String.format("Cut %d-%d ", from, to);
+        String msg = String.format("Cut %d-%d ", from + 1, to + 1);
         if (to - from == 4)
         {
           // all columns were cut
@@ -834,7 +834,7 @@ public class EditCommandTest
       final int oldFrom = ((Integer) sf.getValue("from")).intValue();
       final int oldTo = ((Integer) sf.getValue("to")).intValue();
       String msg = String.format(
-              "Undo cut of [%d-%d], feature at [%d-%d] ", from, to,
+              "Undo cut of [%d-%d], feature at [%d-%d] ", from + 1, to + 1,
               oldFrom, oldTo);
       assertEquals(msg + "start", oldFrom, sf.getBegin());
       assertEquals(msg + "end", oldTo, sf.getEnd());