diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-09-05 08:51:38 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-09-05 08:51:38 +0200 |
commit | 4077050a423973c9d713f67ebf73c94e83392e17 (patch) | |
tree | 5126c83c71a92fee88648525a686a900315d1406 /tests/collections/tableadds.nim | |
parent | 147c2577200306317b5ba52335293a07b6111444 (diff) | |
download | Nim-4077050a423973c9d713f67ebf73c94e83392e17.tar.gz |
fixes a critical tables bug that caused 'enlarge' to crash after 'add'
Diffstat (limited to 'tests/collections/tableadds.nim')
-rw-r--r-- | tests/collections/tableadds.nim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/collections/tableadds.nim b/tests/collections/tableadds.nim new file mode 100644 index 000000000..71f1fad7d --- /dev/null +++ b/tests/collections/tableadds.nim @@ -0,0 +1,13 @@ +discard """ + output: '''done''' +""" + +import tables + +proc main = + var tab = newTable[string, string]() + for i in 0..1000: + tab.add "key", "value " & $i + +main() +echo "done" |