Skip to content

Commit

Permalink
workaround testament megatest BUG:D20191218T171447: make test joinable
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour committed Dec 18, 2019
1 parent eb70460 commit de3eedc
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/system/tlenvarargs.nim
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ discard """
tlenvarargs.nim:35:9 (1, 2)
tlenvarargs.nim:36:9 12
tlenvarargs.nim:37:9 1
tlenvarargs.nim:38:8'''
joinable: "false"
tlenvarargs.nim:38:8
done
'''
"""

## line 10

template myecho*(a: varargs[untyped]) =
Expand Down Expand Up @@ -52,4 +52,8 @@ proc main()=
## shows why `lenVarargs` can't be named `len`
doAssert fun4("abcdef") == len("abcdef")

## workaround for BUG:D20191218T171447 whereby if testament expected output ends
## in space, testament strips it from expected output but not actual output,
## which leads to a mismatch when running test via megatest
echo "done"
main()

0 comments on commit de3eedc

Please sign in to comment.