moved tsets test to collections/
This commit is contained in:
parent
6a65d1c515
commit
7a3106d659
1 changed files with 0 additions and 0 deletions
17
tests/collections/tsets.nim
Normal file
17
tests/collections/tsets.nim
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
discard """
|
||||
output: '''true
|
||||
true'''
|
||||
"""
|
||||
|
||||
import sets
|
||||
var
|
||||
a = initSet[int]()
|
||||
b = initSet[int]()
|
||||
c = initSet[string]()
|
||||
|
||||
for i in 0..5: a.incl(i)
|
||||
for i in 1..6: b.incl(i)
|
||||
for i in 0..5: c.incl($i)
|
||||
|
||||
echo map(a, proc(x: int): int = x + 1) == b
|
||||
echo map(a, proc(x: int): string = $x) == c
|
||||
Loading…
Add table
Add a link
Reference in a new issue