mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 05:50:30 +00:00
* packedsets fix regression introduced in #15564 * add tests
This commit is contained in:
10
tests/stdlib/mintsets.nim
Normal file
10
tests/stdlib/mintsets.nim
Normal file
@@ -0,0 +1,10 @@
|
||||
import std/intsets
|
||||
|
||||
proc test1*[]() =
|
||||
let a = initIntSet()
|
||||
doAssert len(a) == 0
|
||||
|
||||
proc test2*[]() =
|
||||
var a = initIntSet()
|
||||
var b = initIntSet()
|
||||
a.incl b
|
||||
6
tests/stdlib/tintsets.nim
Normal file
6
tests/stdlib/tintsets.nim
Normal file
@@ -0,0 +1,6 @@
|
||||
import ./mintsets
|
||||
|
||||
block: # bug https://github.com/nim-lang/Nim/pull/15564#issuecomment-729878104
|
||||
# related to bug #11167
|
||||
test1()
|
||||
test2()
|
||||
Reference in New Issue
Block a user