summary refs log tree commit diff stats
path: root/tests/run/titerslice.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2013-04-08 20:18:33 +0200
committerAraq <rumpf_a@web.de>2013-04-08 20:18:33 +0200
commit908383e4cab979dcc3ee7a1c1710dd5314984065 (patch)
tree807af8548365ee70ac6d2221ec5ebb5a01571b43 /tests/run/titerslice.nim
parentdc65ccde011023beab4e3405cb54d6229ed7082e (diff)
downloadNim-908383e4cab979dcc3ee7a1c1710dd5314984065.tar.gz
fixes #321
Diffstat (limited to 'tests/run/titerslice.nim')
-rw-r--r--tests/run/titerslice.nim9
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