diff options
Diffstat (limited to 'tests/accept/run/tpos.nim')
-rwxr-xr-x | tests/accept/run/tpos.nim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/accept/run/tpos.nim b/tests/accept/run/tpos.nim index df701d3c5..3d72536dd 100755 --- a/tests/accept/run/tpos.nim +++ b/tests/accept/run/tpos.nim @@ -1,3 +1,7 @@ +discard """ + file: "tpos.nim" + output: "6" +""" # test this particular function proc mypos(sub, s: string, start: int = 0): int = @@ -27,3 +31,5 @@ var sub = "hello" var s = "world hello" write(stdout, mypos(sub, s)) #OUT 6 + + |