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());
}
}