diff options
author | Miran <narimiran@users.noreply.github.com> | 2018-10-17 19:46:42 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-10-17 19:46:42 +0200 |
commit | 95504caa31df4cb4e86b03fd38d729b2ddb1d439 (patch) | |
tree | 13282df544a279c16dd31fa63751645431ed562e /tests/collections | |
parent | 81e33b9d874cd400d61b0e9df21e7367ea430dc3 (diff) | |
download | Nim-95504caa31df4cb4e86b03fd38d729b2ddb1d439.tar.gz |
make some tests faster (#9413)
* remove duplicated slow test * smaller `convex hull` * smaller sleep * faster `trtree` * smaller sleep in `tfuturestream`
Diffstat (limited to 'tests/collections')
-rw-r--r-- | tests/collections/ttables.nim | 31 |
1 files changed, 6 insertions, 25 deletions
diff --git a/tests/collections/ttables.nim b/tests/collections/ttables.nim index cb31a8652..4d11f56f2 100644 --- a/tests/collections/ttables.nim +++ b/tests/collections/ttables.nim @@ -3,10 +3,9 @@ discard """ output: ''' done And we get here -true -true -true -true +1 +2 +3 ''' """ import hashes, sequtils, tables @@ -119,8 +118,7 @@ block thashes: newTable[uint32, string](), newTable[uint64, string](), ) - - echo "true" + echo "1" block tindexby: @@ -188,7 +186,7 @@ block ttables2: run1() - echo "true" + echo "2" block tablesref: @@ -355,21 +353,4 @@ block tablesref: assert t.len() == 0 orderedTableSortTest() - echo "true" - - -block tablesref2: - proc TestHashIntInt() = - var tab = newTable[int,int]() - for i in 1..1_000_000: - tab[i] = i - for i in 1..1_000_000: - var x = tab[i] - if x != i : echo "not found ", i - - proc run1() = # occupied Memory stays constant, but - for i in 1 .. 50: # aborts at run: 44 on win32 with 3.2GB with out of memory - TestHashIntInt() - - run1() - echo "true" + echo "3" |