mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-30 18:41:45 +00:00
[refactoring] refactor the compiler and stdlib to deprecation warnings (#11419)
(cherry picked from commit c7e1c665a1)
This commit is contained in:
@@ -22,7 +22,7 @@ proc matchStackTrace(actualEntries: openarray[StackTraceEntry], expected: string
|
||||
var line: int
|
||||
if not scanf(l, "$s$w.nim($i) $w", filename, line, procname):
|
||||
doAssert(false, "Wrong expected stack trace")
|
||||
checkEqual($actualEntries[i].filename, filename & ".nim", "file name")
|
||||
checkEqual(actualEntries[i].filename.`$`.split('/')[^1], filename & ".nim", "file name")
|
||||
if line != 0:
|
||||
checkEqual(actualEntries[i].line, line, "line number")
|
||||
checkEqual($actualEntries[i].procname, procname, "proc name")
|
||||
|
||||
Reference in New Issue
Block a user