X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fcommands%2FEditCommandTest.java;fp=test%2Fjalview%2Fcommands%2FEditCommandTest.java;h=6ed0a2c9dc6f165e51ff11056dfa6d7b82aa19ce;hb=7fb9fc0c2592974ffcd3a2de49a8889700be0b5f;hp=ed376702ce1d7f2db6bf08cf792eab9ed9538e46;hpb=7ce78079fb4f5b93dc63424577d2c7e2c960123a;p=jalview.git diff --git a/test/jalview/commands/EditCommandTest.java b/test/jalview/commands/EditCommandTest.java index ed37670..6ed0a2c 100644 --- a/test/jalview/commands/EditCommandTest.java +++ b/test/jalview/commands/EditCommandTest.java @@ -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());