added tests for set

This commit is contained in:
Simon Hafner
2014-02-10 12:45:00 -06:00
parent 0b5c14962e
commit 56c41ae140

12
tests/sets/tsets_lt.nim Normal file
View File

@@ -0,0 +1,12 @@
discard """
output: '''true
true
true'''
"""
var s, s1: set[char]
s = {'a'..'d'}
s1 = {'a'..'c'}
echo s1 < s
echo s1 * s == {'a'..'c'}
echo s1 <= s