enable bsd for tsetutils; improve setutils API (#17098)
This commit is contained in:
parent
cbbb6ca4d7
commit
6b3bdd798d
2 changed files with 12 additions and 7 deletions
|
|
@ -1,13 +1,15 @@
|
|||
discard """
|
||||
targets: "c js"
|
||||
disabled: "bsd" # pending #17093
|
||||
"""
|
||||
|
||||
import std/setutils
|
||||
|
||||
type
|
||||
Colors = enum
|
||||
red, green = 5, blue = 10
|
||||
Bar = enum
|
||||
bar0 = -1, bar1, bar2
|
||||
|
||||
template main =
|
||||
block: # toSet
|
||||
doAssert "abcbb".toSet == {'a', 'b', 'c'}
|
||||
|
|
@ -31,4 +33,4 @@ template main =
|
|||
doAssert {'0'..'9'}.complement == {0.char..255.char} - {'0'..'9'}
|
||||
|
||||
main()
|
||||
static: main()
|
||||
static: main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue