start of tests refactoring; sqlite3 new wrapper fixes

This commit is contained in:
rumpf_a@web.de
2010-02-21 19:42:36 +01:00
parent 6bc16904ed
commit d913fdb280
173 changed files with 206 additions and 238 deletions

View File

@@ -0,0 +1,18 @@
# 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]