summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorMiran <narimiran@disroot.org>2019-03-07 00:49:39 +0100
committerAndreas Rumpf <rumpf_a@web.de>2019-03-07 00:49:39 +0100
commit2b5e48d80735be60c68023de114a586bbcc18360 (patch)
tree4031d089c40c86339aa2a9b15b9f47840c473400 /tests
parent26f48437ca429f8e25f20d1f986c5b46e83cc90b (diff)
downloadNim-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.nim6
-rw-r--r--tests/errmsgs/t9768.nim2
-rw-r--r--tests/manyloc/standalone/panicoverride.nim4
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) =
div class='alt'>
f7884717c ^
439aa2d04 ^



f7884717c ^
8550a8127 ^

439aa2d04 ^












1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54