@@ -291,18 +291,18 @@ func TestSetHighestLowest(t *testing.T) {
291291 ba := newBitArray (10 )
292292
293293 assert .False (t , ba .anyset )
294- assert .Equal (t , 0 , ba .lowest )
295- assert .Equal (t , 0 , ba .highest )
294+ assert .Equal (t , uint64 ( 0 ) , ba .lowest )
295+ assert .Equal (t , uint64 ( 0 ) , ba .highest )
296296
297297 ba .SetBit (5 )
298298
299299 assert .True (t , ba .anyset )
300- assert .Equal (t , 5 , ba .lowest )
301- assert .Equal (t , 5 , ba .highest )
300+ assert .Equal (t , uint64 ( 5 ) , ba .lowest )
301+ assert .Equal (t , uint64 ( 5 ) , ba .highest )
302302
303303 ba .SetBit (8 )
304- assert .Equal (t , 5 , ba .lowest )
305- assert .Equal (t , 8 , ba .highest )
304+ assert .Equal (t , uint64 ( 5 ) , ba .lowest )
305+ assert .Equal (t , uint64 ( 8 ) , ba .highest )
306306}
307307
308308func TestGetBitAtCapacity (t * testing.T ) {
@@ -330,42 +330,42 @@ func TestClearHighestLowest(t *testing.T) {
330330 ba .ClearBit (5 )
331331
332332 assert .False (t , ba .anyset )
333- assert .Equal (t , 0 , ba .lowest )
334- assert .Equal (t , 0 , ba .highest )
333+ assert .Equal (t , uint64 ( 0 ) , ba .lowest )
334+ assert .Equal (t , uint64 ( 0 ) , ba .highest )
335335
336336 ba .SetBit (3 )
337337 ba .SetBit (5 )
338338 ba .SetBit (7 )
339339
340340 ba .ClearBit (7 )
341341 assert .True (t , ba .anyset )
342- assert .Equal (t , 5 , ba .highest )
343- assert .Equal (t , 3 , ba .lowest )
342+ assert .Equal (t , uint64 ( 5 ) , ba .highest )
343+ assert .Equal (t , uint64 ( 3 ) , ba .lowest )
344344
345345 ba .SetBit (7 )
346346 ba .ClearBit (3 )
347347 assert .True (t , ba .anyset )
348- assert .Equal (t , 5 , ba .lowest )
349- assert .Equal (t , 7 , ba .highest )
348+ assert .Equal (t , uint64 ( 5 ) , ba .lowest )
349+ assert .Equal (t , uint64 ( 7 ) , ba .highest )
350350
351351 ba .ClearBit (7 )
352352 assert .True (t , ba .anyset )
353- assert .Equal (t , 5 , ba .lowest )
354- assert .Equal (t , 5 , ba .highest )
353+ assert .Equal (t , uint64 ( 5 ) , ba .lowest )
354+ assert .Equal (t , uint64 ( 5 ) , ba .highest )
355355
356356 ba .ClearBit (5 )
357357 assert .False (t , ba .anyset )
358- assert .Equal (t , 0 , ba .lowest )
359- assert .Equal (t , 0 , ba .highest )
358+ assert .Equal (t , uint64 ( 0 ) , ba .lowest )
359+ assert .Equal (t , uint64 ( 0 ) , ba .highest )
360360}
361361
362362func TestComplementResetsBounds (t * testing.T ) {
363363 ba := newBitArray (5 )
364364
365365 ba .complement ()
366366 assert .True (t , ba .anyset )
367- assert .Equal (t , 0 , ba .lowest )
368- assert .Equal (t , s - 1 , ba .highest )
367+ assert .Equal (t , uint64 ( 0 ) , ba .lowest )
368+ assert .Equal (t , uint64 ( s - 1 ) , ba .highest )
369369}
370370
371371func TestBitArrayIntersectsSparse (t * testing.T ) {
@@ -413,7 +413,7 @@ func TestConstructorSetBitArray(t *testing.T) {
413413 assert .Nil (t , err )
414414 assert .True (t , result )
415415 assert .Equal (t , s - 1 , ba .highest )
416- assert .Equal (t , 0 , ba .lowest )
416+ assert .Equal (t , uint64 ( 0 ) , ba .lowest )
417417 assert .True (t , ba .anyset )
418418}
419419
0 commit comments