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
parent 26f48437ca
commit 2b5e48d807
9 changed files with 450 additions and 434 deletions

View File

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