From: Jim Procter Date: Tue, 1 Nov 2016 17:21:49 +0000 (+0000) Subject: JAL-345 JAL-1738 strengthen test for cardinalty count/range selects X-Git-Tag: Release_2_10_1~10^2~6^2~1^2~14 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=bdc5ecb2b1d6021d235c633112990cbacd072c4a;p=jalview.git JAL-345 JAL-1738 strengthen test for cardinalty count/range selects --- diff --git a/test/jalview/datamodel/SearchResultsTest.java b/test/jalview/datamodel/SearchResultsTest.java index b861f99..a08c577 100644 --- a/test/jalview/datamodel/SearchResultsTest.java +++ b/test/jalview/datamodel/SearchResultsTest.java @@ -260,8 +260,11 @@ public class SearchResultsTest s2g.setStartRes(1); s2g.setEndRes(1); sallg.setEndRes(0); - BitSet tbs; - assertEquals(1, sr.markColumns(s2g, tbs = new BitSet())); - assertEquals(1, sr.markColumns(sallg, tbs = new BitSet())); + BitSet tbs = new BitSet(); + assertEquals("Group start/end didn't select columns to mark",1, sr.markColumns(s2g, tbs)); + assertEquals("Group start/end didn't select columns to mark", 1, sr.markColumns(sallg, tbs)); + assertEquals( + "Didn't set expected number of columns in total for two successive marks", + 2, tbs.cardinality()); } }