From: Jim Procter Date: Sun, 4 Jun 2017 11:02:16 +0000 (+0100) Subject: JAL-2291 fixed broken asserts for SequenceI.getInsertionsAsBits X-Git-Tag: Release_2_10_2~3^2~36 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=ecec44444833a1ed48f9a99c38ec07f572982436;p=jalview.git JAL-2291 fixed broken asserts for SequenceI.getInsertionsAsBits --- diff --git a/test/jalview/datamodel/SequenceTest.java b/test/jalview/datamodel/SequenceTest.java index ae82d13..a52f0a2 100644 --- a/test/jalview/datamodel/SequenceTest.java +++ b/test/jalview/datamodel/SequenceTest.java @@ -78,8 +78,13 @@ public class SequenceTest BitSet gapfield = aseq.getInsertionsAsBits(); BitSet expectedgaps = new BitSet(); - expectedgaps.set(2, 4); - expectedgaps.set(6, 8); + expectedgaps.set(2, 5); + expectedgaps.set(6, 9); + + assertEquals(6, expectedgaps.cardinality()); + + assertEquals("getInsertionsAsBits didn't mark expected number of gaps", + 6, gapfield.cardinality()); assertEquals("getInsertionsAsBits not correct.", expectedgaps, gapfield); }