summary refs log tree commit diff stats
path: root/tests/accept/run
diff options
context:
space:
mode:
authorAndreas Rumpf <andreas@andreas-laptop>2010-07-21 09:44:47 +0200
committerAndreas Rumpf <andreas@andreas-laptop>2010-07-21 09:44:47 +0200
commitd10973adb00840631e5314ec902d502f15934801 (patch)
treea207854b0cf984815beb26bf2d71933ce566f6d7 /tests/accept/run
parentc441cdb64ca5394f74faadf76563bcfafeda18f4 (diff)
downloadNim-d10973adb00840631e5314ec902d502f15934801.tar.gz
c2nim tool added
Diffstat (limited to 'tests/accept/run')
-rwxr-xr-xtests/accept/run/spec.csv1
-rw-r--r--tests/accept/run/tarray3.nim7
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
+
/div>
21
22
23
24
25
 

                                                              






                                                                                                                                                                                
                                                                                                                                                                                                             








                                                                                                                                   
                                                                                        

                                                                                      
                                    
             
>^
34a60763 ^
b3556b21 ^
f07bb12f ^

62cd83ba ^










f07bb12f ^




62cd83ba ^

34a60763 ^

62cd83ba ^





2144cf26 ^
a614f048 ^
f07bb12f ^





62cd83ba ^
f07bb12f ^





62cd83ba ^
f07bb12f ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75