diff options
author | Araq <rumpf_a@web.de> | 2011-11-19 15:45:51 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-11-19 15:45:51 +0100 |
commit | a274f3bf5be3fc35f1538e5aab0e32fb9ed2ff82 (patch) | |
tree | 95dc5bf7fe3716a3ab266f78094fccce38c94ccf /tests/accept/run/tarray2.nim | |
parent | d0772feb08baaea12bfdad0a7c20a41733f977bd (diff) | |
download | Nim-a274f3bf5be3fc35f1538e5aab0e32fb9ed2ff82.tar.gz |
got rid of 'accept' dir in the tests
Diffstat (limited to 'tests/accept/run/tarray2.nim')
-rwxr-xr-x | tests/accept/run/tarray2.nim | 24 |
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] - - |