fixes #21195; std/assertions continue to use sysFatal when nimPreviewSlimSystem is not defined (#21196)
* fixes #21195; `std/assertions` continue to use `sysFatal` * try includes * make `std/assertions` self-contained * fixes tests * fixes tests
This commit is contained in:
parent
705da9d452
commit
ebd1c678be
7 changed files with 63 additions and 30 deletions
|
|
@ -1,14 +1,14 @@
|
|||
discard """
|
||||
errormsg: "unhandled exception: t9768.nim(24, 3) `a < 4` [AssertionDefect]"
|
||||
file: "std/assertions.nim"
|
||||
matrix: "-d:nimPreviewSlimSystem"
|
||||
nimout: '''
|
||||
stack trace: (most recent call last)
|
||||
t9768.nim(29, 33) main
|
||||
t9768.nim(24, 11) foo1
|
||||
'''
|
||||
"""
|
||||
|
||||
|
||||
import std/assertions
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue