summary refs log tree commit diff stats
path: root/tests/stdlib
diff options
context:
space:
mode:
authorAndy Davidoff <disruptek@users.noreply.github.com>2019-12-09 00:58:36 -0500
committerAndreas Rumpf <rumpf_a@web.de>2019-12-09 06:58:36 +0100
commita3d45d0c1b20982f79b384ddc9af27b745329596 (patch)
tree98584e346c69d7684c28d695025a6e324fcdc718 /tests/stdlib
parenta02d043b5850d9d6ca6584ce513b72ddedf2ef04 (diff)
downloadNim-a3d45d0c1b20982f79b384ddc9af27b745329596.tar.gz
add a StringTable.clear that requires no mode specification (#12853)
* add clear overload, test, changelog

* add since annotation
Diffstat (limited to 'tests/stdlib')
-rw-r--r--tests/stdlib/tstrtabs.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/stdlib/tstrtabs.nim b/tests/stdlib/tstrtabs.nim
index 18ed57167..5d7e8c762 100644
--- a/tests/stdlib/tstrtabs.nim
+++ b/tests/stdlib/tstrtabs.nim
@@ -82,6 +82,7 @@ key_7: value7
 key_80: value80
 key_8: value8
 key_9: value9
+length of table 0
 length of table 81
 value1 = value2
 '''
@@ -99,3 +100,5 @@ for key, val in pairs(tab):
 writeLine(stdout, "length of table ", $tab.len)
 
 writeLine(stdout, `%`("$key1 = $key2", tab, {useEnvironment}))
+tab.clear
+writeLine(stdout, "length of table ", $tab.len)