mirror of
https://github.com/status-im/nim-stew.git
synced 2025-02-13 12:36:57 +00:00
bitseq failing test
This commit is contained in:
parent
4f685ab7ec
commit
3689c58d1b
@ -56,3 +56,15 @@ suite "Bit fields":
|
||||
check a[j] == (j == 0)
|
||||
check b[j] == (j == 1)
|
||||
|
||||
test "overlaps":
|
||||
for bitCount in [63, 62]:
|
||||
checkpoint &"trying bit count {bitCount}"
|
||||
var
|
||||
a = BitSeq.init(bitCount)
|
||||
b = BitSeq.init(bitCount)
|
||||
a.raiseBit(4)
|
||||
b.raiseBit(5)
|
||||
|
||||
check:
|
||||
not a.overlaps(b)
|
||||
not b.overlaps(a)
|
||||
|
Loading…
x
Reference in New Issue
Block a user