From a274f3bf5be3fc35f1538e5aab0e32fb9ed2ff82 Mon Sep 17 00:00:00 2001 From: Araq Date: Sat, 19 Nov 2011 15:45:51 +0100 Subject: got rid of 'accept' dir in the tests --- tests/accept/run/tarray2.nim | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100755 tests/accept/run/tarray2.nim (limited to 'tests/accept/run/tarray2.nim') 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] - - -- cgit 1.4.1-2-gfad0