From ecec44444833a1ed48f9a99c38ec07f572982436 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Sun, 4 Jun 2017 12:02:16 +0100 Subject: [PATCH] JAL-2291 fixed broken asserts for SequenceI.getInsertionsAsBits --- test/jalview/datamodel/SequenceTest.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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); } -- 1.7.10.2