You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
intsets.missingOrExcl silently gives wrong result in some cases
Example
import intsets
var t: IntSet# these work
t.incl10doAssertnot t.missingOrExcl(10)
doAssert t.missingOrExcl(10)
doAssert t.missingOrExcl(11)
# let n = 30 # this would worklet n =40# this will cause bugfor i in0..<n:
t.incl(i)
for i in0..<n:
doAssert i in t
let isMissing = t.missingOrExcl(i)
doAssertnot isMissing, $i
… of tests (#13498) [backport]
* fix#13496 handle tombstones
* add test
* more tests
* fix#13504; add SharedTable tests
* fix ##13505 intsets.missingOrExcl silently gave wrong results sometimes
* add test for tintsets
… of tests (#13498) [backport]
* fix#13496 handle tombstones
* add test
* more tests
* fix#13504; add SharedTable tests
* fix ##13505 intsets.missingOrExcl silently gave wrong results sometimes
* add test for tintsets
(cherry picked from commit 42dad3a)
intsets.missingOrExcl silently gives wrong result in some cases
Example
Current Output
Expected Output
Additional Information
The text was updated successfully, but these errors were encountered: