Nim/tests/compile/tnewsets.nim
2013-03-16 23:53:07 +01:00

6 lines
125 B
Nim

# new test for sets:
const elem = ' '
var s: set[char] = {elem}
assert(elem in s and 'a' not_in s and 'c' not_in s )