summary refs log tree commit diff stats
path: root/tests/exception
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2020-11-29 10:42:50 -0800
committerGitHub <noreply@github.com>2020-11-29 10:42:50 -0800
commit6114df3c24e9c23bfbdbaa204bb100de9d170995 (patch)
treeaaabc7a0e5ecc6ea6ba5572fef469e54f94fb876 /tests/exception
parentd29eddf92a1b8147c4709fd828f77152c1f3aab2 (diff)
downloadNim-6114df3c24e9c23bfbdbaa204bb100de9d170995.tar.gz
testament: error instead of silently overwrite a spec (#16166)
Diffstat (limited to 'tests/exception')
-rw-r--r--tests/exception/t13115.nim9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/exception/t13115.nim b/tests/exception/t13115.nim
index 9d88bbeda..53e078076 100644
--- a/tests/exception/t13115.nim
+++ b/tests/exception/t13115.nim
@@ -2,12 +2,11 @@ discard """
   exitcode: 1
   targets: "c"
   matrix: "-d:debug; -d:release"
-  outputsub: '''t13115.nim(13)           t13115
-Error: unhandled exception: This char is'''
   outputsub: ''' and works fine! [Exception]'''
 """
 
-const b_null: char = 0.char
-var msg = "This char is `" & $b_null & "` and works fine!"
+# bug #13115
+# xxx bug: doesn't yet work for cpp
 
-raise newException(Exception, msg)
\ No newline at end of file
+var msg = "This char is `" & '\0' & "` and works fine!"
+raise newException(Exception, msg)