mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 17:15:56 +00:00
Revised WithErrors test with err corrections
This commit is contained in:
parent
6b6249b86a
commit
b0165d7ef9
1 changed files with 8 additions and 5 deletions
|
|
@ -3322,12 +3322,15 @@ func TestUnmarshalRoaringWithErrors(t *testing.T) {
|
|||
},
|
||||
}
|
||||
for _, loopContainers := range noContainers {
|
||||
zeroContainers, _ := hex.DecodeString(loopContainers.hexString)
|
||||
zeroContainers, err := hex.DecodeString(loopContainers.hexString)
|
||||
if err != nil {
|
||||
t.Fatalf("hex decode %s", err)
|
||||
}
|
||||
bm := NewBitmap()
|
||||
er := bm.UnmarshalBinary(zeroContainers)
|
||||
if er != nil {
|
||||
if er.Error() != loopContainers.expectedError {
|
||||
t.Fatalf("Expected: %s, Got: %s", loopContainers.expectedError, er)
|
||||
err = bm.UnmarshalBinary(zeroContainers)
|
||||
if err != nil {
|
||||
if err.Error() != loopContainers.expectedError {
|
||||
t.Fatalf("Expected: %s, Got: %s", loopContainers.expectedError, err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue