git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-2541 clean unit test of cut/undo (ungapped sequence)
[jalview.git]
/
test
/
jalview
/
commands
/
EditCommandTest.java
diff --git
a/test/jalview/commands/EditCommandTest.java
b/test/jalview/commands/EditCommandTest.java
index
ed37670
..
6ed0a2c
100644
(file)
--- 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)
*/
* 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
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(
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());
oldFrom, oldTo);
assertEquals(msg + "start", oldFrom, sf.getBegin());
assertEquals(msg + "end", oldTo, sf.getEnd());