summary refs log tree commit diff stats
path: root/tests/exception
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/exception
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/exception')
-rw-r--r--tests/exception/texcas.nim5
-rw-r--r--tests/exception/texceptions.nim1
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/exception/texcas.nim b/tests/exception/texcas.nim
index 7108e334c..ad6819f11 100644
--- a/tests/exception/texcas.nim
+++ b/tests/exception/texcas.nim
@@ -1,8 +1,9 @@
 discard """
   targets: "c cpp"
-  output: '''Hello
+  output: '''
 Hello
-  '''
+Hello
+'''
 """
 proc test[T]() =
   try:
diff --git a/tests/exception/texceptions.nim b/tests/exception/texceptions.nim
index 5d4d0fa9e..adee5d1d5 100644
--- a/tests/exception/texceptions.nim
+++ b/tests/exception/texceptions.nim
@@ -1,5 +1,6 @@
 discard """
   output: '''
+
 BEFORE
 FINALLY