From f5a31814c7b7febf40201bf1595b8c384a06e21a Mon Sep 17 00:00:00 2001 From: bloeys Date: Mon, 22 Jul 2024 00:21:04 +0400 Subject: [PATCH] Add SetBits test for Full uint32 set --- nset_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nset_test.go b/nset_test.go index bbe9295..bdf8c6d 100755 --- a/nset_test.go +++ b/nset_test.go @@ -127,6 +127,7 @@ func TestNSetFullRange(t *testing.T) { } } fullRangeNSet.Add(math.MaxUint32) + AllTrue(t, fullRangeNSet.SetBits == math.MaxUint32+1) } n := fullRangeNSet @@ -138,7 +139,7 @@ func TestNSetFullRange(t *testing.T) { for j := 0; j < len(b.Data); j++ { if b.Data[j] != math.MaxUint64 { - t.Errorf("Error: storage unit is NOT equal to MaxUint64 (i=%d,j=%d)! Expected math.MaxUint64 but got '%08b'\n", + t.Fatalf("Error: storage unit is NOT equal to MaxUint64 (i=%d,j=%d)! Expected math.MaxUint64 but got '%08b'\n", i, j, b.Data[j])