got rid of 'accept' dir in the tests

This commit is contained in:
Araq 2011-11-19 15:45:51 +01:00
commit a274f3bf5b
264 changed files with 5 additions and 7 deletions

18
tests/run/topenlen.nim Executable file
View file

@ -0,0 +1,18 @@
discard """
file: "topenlen.nim"
output: "7"
"""
# 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