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
This commit is contained in:
Miran 2019-03-07 00:49:39 +01:00 • committed by Andreas Rumpf
commit 2b5e48d807
9 changed files with 450 additions and 434 deletions

View file

@ -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) =