no uniqueCounter it is
This commit is contained in:
parent
33cabeb04d
commit
e9bbc7235d
2 changed files with 7 additions and 9 deletions
|
|
@ -5,11 +5,10 @@ import sets
|
|||
suite "random int":
|
||||
test "there might be some randomness":
|
||||
var set = initSet[int](128)
|
||||
for i in 1..10:
|
||||
for j in 1..10:
|
||||
randomize()
|
||||
incl(set, random(high(int)))
|
||||
check len(set) == 100
|
||||
randomize()
|
||||
for i in 1..1000:
|
||||
incl(set, random(high(int)))
|
||||
check len(set) == 1000
|
||||
test "single number bounds work":
|
||||
randomize()
|
||||
var rand: int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue