version 0.7.2

This commit is contained in:
Andreas Rumpf 2008-12-12 14:02:27 +01:00
commit ddaedab835
158 changed files with 34811 additions and 10001 deletions

12
tests/topenlen.nim Normal file
View file

@ -0,0 +1,12 @@
# Tests a special bug
proc choose(b: openArray[string]): string = return b[0]
proc p(a, b: openarray[string]): int =
result = a.len + b.len - 1
for j in 0 .. a.len: inc(result)
discard choose(a)
discard choose(b)
discard choose(["sh", "-c", $p([""], ["a"])])
echo($p(["", "ha", "abc"], ["xyz"])) #OUT 7