diff options
author | Miran <narimiran@disroot.org> | 2019-03-07 00:49:39 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-03-07 00:49:39 +0100 |
commit | 2b5e48d80735be60c68023de114a586bbcc18360 (patch) | |
tree | 4031d089c40c86339aa2a9b15b9f47840c473400 /tests | |
parent | 26f48437ca429f8e25f20d1f986c5b46e83cc90b (diff) | |
download | Nim-2b5e48d80735be60c68023de114a586bbcc18360.tar.gz |
move assertions and iterators out of system.nim (#10597)
* move assertions and iterators out of system.nim * limit nimsuggest tests to the first 3 suggestions
Diffstat (limited to 'tests')
-rw-r--r-- | tests/assert/tfailedassert_stacktrace.nim | 6 | ||||
-rw-r--r-- | tests/errmsgs/t9768.nim | 2 | ||||
-rw-r--r-- | tests/manyloc/standalone/panicoverride.nim | 4 |
3 files changed, 4 insertions, 8 deletions
diff --git a/tests/assert/tfailedassert_stacktrace.nim b/tests/assert/tfailedassert_stacktrace.nim index 6505f189c..b5da3eb43 100644 --- a/tests/assert/tfailedassert_stacktrace.nim +++ b/tests/assert/tfailedassert_stacktrace.nim @@ -5,9 +5,9 @@ discard """ const expected = """ tfailedassert_stacktrace.nim(34) tfailedassert_stacktrace tfailedassert_stacktrace.nim(33) foo -system.nim(*) failedAssertImpl -system.nim(*) raiseAssert -system.nim(*) sysFatal""" +assertions.nim(*) failedAssertImpl +assertions.nim(*) raiseAssert +fatal.nim(*) sysFatal""" proc tmatch(x, p: string): bool = var i = 0 diff --git a/tests/errmsgs/t9768.nim b/tests/errmsgs/t9768.nim index 18588c87c..d369150a5 100644 --- a/tests/errmsgs/t9768.nim +++ b/tests/errmsgs/t9768.nim @@ -1,6 +1,6 @@ discard """ errmsg: "unhandled exception:" - file: "system.nim" + file: "system/fatal.nim" nimout: ''' stack trace: (most recent call last) t9768.nim(28, 33) main diff --git a/tests/manyloc/standalone/panicoverride.nim b/tests/manyloc/standalone/panicoverride.nim index 9d0d070c7..d9b3f4388 100644 --- a/tests/manyloc/standalone/panicoverride.nim +++ b/tests/manyloc/standalone/panicoverride.nim @@ -2,10 +2,6 @@ proc printf(frmt: cstring) {.varargs, importc, header: "<stdio.h>", cdecl.} proc exit(code: int) {.importc, header: "<stdlib.h>", cdecl.} -proc nimToCStringConv(s: NimString): cstring {.compilerProc, inline.} = - if s == nil or s.len == 0: result = cstring"" - else: result = cstring(addr s.data) - {.push stack_trace: off, profiler:off.} proc rawoutput(s: string) = |