mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
* assertions: properly fix #11545 * tests/assert: enable excessiveStackTrace * tests/assert: add test case for #11545 * tfailedassert_stacktrace: disable excessiveStackTrace * assertions: weird workaround for failing tests This fixes megatest on *nix, but have no idea why
12 lines
255 B
Nim
12 lines
255 B
Nim
discard """
|
|
cmd: "nim $target $options --excessiveStackTrace:off $file"
|
|
output: '''
|
|
test:ok
|
|
'''
|
|
"""
|
|
import testhelper
|
|
try:
|
|
doAssert(false, "msg")
|
|
except AssertionError as e:
|
|
checkMsg(e.msg, "trelativeassert.nim(9, 11) `false` msg", "test", false)
|