diff options
Diffstat (limited to 'tests/titer.nim')
-rw-r--r-- | tests/titer.nim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/titer.nim b/tests/titer.nim index 3f71ba8d9..19a11dc4e 100644 --- a/tests/titer.nim +++ b/tests/titer.nim @@ -32,3 +32,13 @@ for i in xrange(0, 5): for j in interval(45, 45): write(stdout, "test2!") write(stdout, "test3?") + +for x in items(["hi", "what's", "your", "name"]): + echo(x) + +const + stringArray = ["hi", "what's", "your", "name"] + +for i in 0..len(stringArray)-1: + echo(stringArray[i]) + |