summary refs log tree commit diff stats
path: root/tests/accept/run/topenlen.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/accept/run/topenlen.nim')
-rwxr-xr-xtests/accept/run/topenlen.nim12
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/accept/run/topenlen.nim b/tests/accept/run/topenlen.nim
deleted file mode 100755
index b9d7fbc2d..000000000
--- a/tests/accept/run/topenlen.nim
+++ /dev/null
@@ -1,12 +0,0 @@
-# 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