@@ -315,7 +315,7 @@ func TestUnsetIteratorPeekable(t *testing.T) {
315315 b .AddInt (5 )
316316 b .AddInt (8 )
317317
318- it := b .UnsetIterator (3 , 10 )
318+ it := b .UnsetIterator (3 , 11 )
319319
320320 // First value should be 3
321321 assert .True (t , it .HasNext ())
@@ -357,7 +357,7 @@ func TestUnsetIteratorPeekable(t *testing.T) {
357357 b .AddInt (8 )
358358 b .AddInt (12 )
359359
360- it := b .UnsetIterator (1 , 15 )
360+ it := b .UnsetIterator (1 , 16 )
361361
362362 // Skip to values >= 7
363363 it .AdvanceIfNeeded (7 )
@@ -394,7 +394,7 @@ func TestUnsetIteratorPeekable(t *testing.T) {
394394 b := New ()
395395 b .AddInt (5 )
396396
397- it := b .UnsetIterator (10 , 15 )
397+ it := b .UnsetIterator (10 , 16 )
398398
399399 // Try to advance to a value before our range start
400400 it .AdvanceIfNeeded (5 )
@@ -408,7 +408,7 @@ func TestUnsetIteratorPeekable(t *testing.T) {
408408 b := New ()
409409 b .AddInt (5 )
410410
411- it := b .UnsetIterator (10 , 15 )
411+ it := b .UnsetIterator (10 , 16 )
412412
413413 // Advance beyond our range
414414 it .AdvanceIfNeeded (20 )
@@ -420,7 +420,7 @@ func TestUnsetIteratorPeekable(t *testing.T) {
420420 t .Run ("advance if needed on current value" , func (t * testing.T ) {
421421 b := New ()
422422 b .AddRange (0 , 0x10000 )
423- iter := b .UnsetIterator (0 , 0x10002 )
423+ iter := b .UnsetIterator (0 , 0x10003 )
424424 var got []uint32
425425 prev := uint32 (0 )
426426 for len (got ) < 10 {
@@ -439,7 +439,7 @@ func TestUnsetIteratorPeekable(t *testing.T) {
439439 b := New ()
440440 b .AddInt (5 ) // Set bit in middle of range
441441
442- it := b .UnsetIterator (5 , 5 ) // Range contains only the set bit
442+ it := b .UnsetIterator (5 , 6 ) // Range contains only the set bit
443443
444444 // Should have no values
445445 assert .False (t , it .HasNext ())
@@ -454,7 +454,7 @@ func TestUnsetIteratorPeekable(t *testing.T) {
454454 b := New ()
455455 b .Add (4294967294 ) // Set the value before max
456456
457- it := b .UnsetIterator (4294967294 , 4294967295 )
457+ it := b .UnsetIterator (4294967294 , 4294967296 )
458458
459459 // Should have 4294967295 (max uint32) as it's unset
460460 assert .True (t , it .HasNext ())
@@ -469,7 +469,7 @@ func TestUnsetIteratorPeekable(t *testing.T) {
469469 b := New ()
470470 b .Add (4294967295 ) // Set max uint32
471471
472- it := b .UnsetIterator (4294967294 , 4294967295 )
472+ it := b .UnsetIterator (4294967294 , 4294967296 )
473473
474474 // Should have 4294967294 as it's unset, but not 4294967295
475475 assert .True (t , it .HasNext ())
0 commit comments