diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2020-11-28 00:09:31 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-28 09:09:31 +0100 |
commit | b809562c7cc38e391c1e3240d8ca77ba035c3f75 (patch) | |
tree | 5f5d6869dd774cb09d2956fdef47310d64a6c983 /tests/stdlib/tparseuints.nim | |
parent | 157e7820f1bf120d0015f3b564ccc45c42ab03f4 (diff) | |
download | Nim-b809562c7cc38e391c1e3240d8ca77ba035c3f75.tar.gz |
make megatest consistent with unjoined tests wrt newlines, honor newlines in output spec (#16151)
* fix megatest newlines * still allow missing trailing newline for now but in a more strict way than before
Diffstat (limited to 'tests/stdlib/tparseuints.nim')
-rw-r--r-- | tests/stdlib/tparseuints.nim | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/stdlib/tparseuints.nim b/tests/stdlib/tparseuints.nim index 6b228d933..72041da66 100644 --- a/tests/stdlib/tparseuints.nim +++ b/tests/stdlib/tparseuints.nim @@ -1,13 +1,14 @@ discard """ action: run output: ''' -[Suite] parseutils''' + +[Suite] parseutils +''' """ import unittest, strutils suite "parseutils": - test "uint": - check: parseBiggestUInt("0") == 0'u64 - check: parseBiggestUInt("18446744073709551615") == 0xFFFF_FFFF_FFFF_FFFF'u64 - expect(ValueError): - discard parseBiggestUInt("18446744073709551616") + check: parseBiggestUInt("0") == 0'u64 + check: parseBiggestUInt("18446744073709551615") == 0xFFFF_FFFF_FFFF_FFFF'u64 + expect(ValueError): + discard parseBiggestUInt("18446744073709551616") |