summary refs log tree commit diff stats
path: root/tests/stdlib/tparseuints.nim
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2020-11-28 00:09:31 -0800
committerGitHub <noreply@github.com>2020-11-28 09:09:31 +0100
commitb809562c7cc38e391c1e3240d8ca77ba035c3f75 (patch)
tree5f5d6869dd774cb09d2956fdef47310d64a6c983 /tests/stdlib/tparseuints.nim
parent157e7820f1bf120d0015f3b564ccc45c42ab03f4 (diff)
downloadNim-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.nim13
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")