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-4134 efficiency improvement
[jalview.git]
/
test
/
jalview
/
datamodel
/
HiddenSequencesTest.java
diff --git
a/test/jalview/datamodel/HiddenSequencesTest.java
b/test/jalview/datamodel/HiddenSequencesTest.java
index
5b2bbd4
..
11b993d
100644
(file)
--- a/
test/jalview/datamodel/HiddenSequencesTest.java
+++ b/
test/jalview/datamodel/HiddenSequencesTest.java
@@
-208,15
+208,17
@@
public class HiddenSequencesTest
assertEquals(6, hs.findIndexWithoutHiddenSeqs(9));
/*
assertEquals(6, hs.findIndexWithoutHiddenSeqs(9));
/*
- * hide first sequence only
+ * hide first two sequences
*/
hs.showAll(null);
hs.hideSequence(seqs[0]);
*/
hs.showAll(null);
hs.hideSequence(seqs[0]);
- for (int i = 1; i < height; i++)
+ hs.hideSequence(seqs[1]);
+ assertEquals(-1, hs.findIndexWithoutHiddenSeqs(0));
+ assertEquals(-1, hs.findIndexWithoutHiddenSeqs(1));
+ for (int i = 2; i < height; i++)
{
{
- assertEquals(i - 1, hs.findIndexWithoutHiddenSeqs(i));
+ assertEquals(i - 2, hs.findIndexWithoutHiddenSeqs(i));
}
}
- assertEquals(-1, hs.findIndexWithoutHiddenSeqs(0));
}
/**
}
/**