Nim/tests/compile/tnewsets.nim
2011-11-19 15:45:51 +01:00

6 lines
125 B
Nim
Executable file

# 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 )