diff options
author | Andreas Rumpf <andreas@andreas-laptop> | 2010-07-21 09:44:47 +0200 |
---|---|---|
committer | Andreas Rumpf <andreas@andreas-laptop> | 2010-07-21 09:44:47 +0200 |
commit | d10973adb00840631e5314ec902d502f15934801 (patch) | |
tree | a207854b0cf984815beb26bf2d71933ce566f6d7 /tests/accept/run | |
parent | c441cdb64ca5394f74faadf76563bcfafeda18f4 (diff) | |
download | Nim-d10973adb00840631e5314ec902d502f15934801.tar.gz |
c2nim tool added
Diffstat (limited to 'tests/accept/run')
-rwxr-xr-x | tests/accept/run/spec.csv | 1 | ||||
-rw-r--r-- | tests/accept/run/tarray3.nim | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/accept/run/spec.csv b/tests/accept/run/spec.csv index f176b5645..ec98fa70e 100755 --- a/tests/accept/run/spec.csv +++ b/tests/accept/run/spec.csv @@ -3,6 +3,7 @@ tambsym2.nim;7 tambsys.nim; tarray.nim;10012 tarray2.nim;[16, 25, 36] +tarray3.nim;3 tassert.nim;assertion failure!this shall be always written tbind1.nim;3 tbind3.nim;1 diff --git a/tests/accept/run/tarray3.nim b/tests/accept/run/tarray3.nim new file mode 100644 index 000000000..881bb7ba4 --- /dev/null +++ b/tests/accept/run/tarray3.nim @@ -0,0 +1,7 @@ +# simple check for two dimensional arrays + +const + myData = [[1,2,3], [4, 5, 6]] + +echo myData[0][2] #OUT 3 + |