summary refs log tree commit diff stats
path: root/tests/accept
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-08-10 01:16:32 +0200
committerAraq <rumpf_a@web.de>2011-08-10 01:16:32 +0200
commitd5dd4669df9827920e7e9f1864171c09ac15fbb2 (patch)
tree4b96b78dc0015d95da14c9b1553116958d160402 /tests/accept
parent72e7a98543e711164574664b0f280637fce28f89 (diff)
downloadNim-d5dd4669df9827920e7e9f1864171c09ac15fbb2.tar.gz
further tests for var T result type; ttables test now fails :-(
Diffstat (limited to 'tests/accept')
-rwxr-xr-xtests/accept/run/ttables.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/accept/run/ttables.nim b/tests/accept/run/ttables.nim
index b492059d7..b82badccb 100755
--- a/tests/accept/run/ttables.nim
+++ b/tests/accept/run/ttables.nim
@@ -60,6 +60,9 @@ block orderedTableTest1:
     assert val == data[i][1]
     inc(i)
 
+  for key, val in mpairs(t): val = 99
+  for val in mvalues(t): assert val == 99
+
 block countTableTest1:
   var s = data.toTable
   var t = initCountTable[string]()