less test time costs (#20479)

This commit is contained in:
Bung 2022-10-02 12:42:41 +08:00 • committed by GitHub
commit 0769b160c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 12 deletions

View file

@ -177,16 +177,14 @@ block tableconstr:
block ttables2:
proc TestHashIntInt() =
var tab = initTable[int,int]()
let n = 100_000
let n = 10
for i in 1..n:
tab[i] = i
for i in 1..n:
var x = tab[i]
if x != i : echo "not found ", i
proc run1() =
for i in 1 .. 50:
TestHashIntInt()
TestHashIntInt()
# bug #2107
@ -198,7 +196,6 @@ block ttables2:
delTab[5] = 5
run1()
echo "2"
block tablesref: