summary refs log tree commit diff stats
path: root/tests/accept/run/tarray2.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-11-19 15:45:51 +0100
committerAraq <rumpf_a@web.de>2011-11-19 15:45:51 +0100
commita274f3bf5be3fc35f1538e5aab0e32fb9ed2ff82 (patch)
tree95dc5bf7fe3716a3ab266f78094fccce38c94ccf /tests/accept/run/tarray2.nim
parentd0772feb08baaea12bfdad0a7c20a41733f977bd (diff)
downloadNim-a274f3bf5be3fc35f1538e5aab0e32fb9ed2ff82.tar.gz
got rid of 'accept' dir in the tests
Diffstat (limited to 'tests/accept/run/tarray2.nim')
-rwxr-xr-xtests/accept/run/tarray2.nim24
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/accept/run/tarray2.nim b/tests/accept/run/tarray2.nim
deleted file mode 100755
index 048f51795..000000000
--- a/tests/accept/run/tarray2.nim
+++ /dev/null
@@ -1,24 +0,0 @@
-discard """
-  file: "tarray2.nim"
-  output: "[16, 25, 36]"
-"""
-# simple check for one dimensional arrays

-

-type

-  TMyArray = array[0..2, int]

-

-proc mul(a, b: TMyarray): TMyArray =

-  result = a
-  for i in 0..len(a)-1:
-    result[i] = a[i] * b[i]
-
-var
-  x, y, z: TMyArray
- 
-x = [ 4, 5, 6 ]
-y = x
-echo repr(mul(x, y))
-
-#OUT [16, 25, 36]

-
-