diff options
author | Araq <rumpf_a@web.de> | 2013-04-08 20:18:33 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2013-04-08 20:18:33 +0200 |
commit | 908383e4cab979dcc3ee7a1c1710dd5314984065 (patch) | |
tree | 807af8548365ee70ac6d2221ec5ebb5a01571b43 /tests/run/titerslice.nim | |
parent | dc65ccde011023beab4e3405cb54d6229ed7082e (diff) | |
download | Nim-908383e4cab979dcc3ee7a1c1710dd5314984065.tar.gz |
fixes #321
Diffstat (limited to 'tests/run/titerslice.nim')
-rw-r--r-- | tests/run/titerslice.nim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/run/titerslice.nim b/tests/run/titerslice.nim new file mode 100644 index 000000000..e5d2e14a3 --- /dev/null +++ b/tests/run/titerslice.nim @@ -0,0 +1,9 @@ +discard """ + output: '''2 +3 +4''' +""" + +var t1 = @["1", "2", "3", "4"] +for t in t1[1..3]: + echo t |