mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-21 16:31:39 +00:00
Merge branch 'master' of github.com:Araq/Nimrod
This commit is contained in:
@@ -1734,7 +1734,6 @@ when isMainModule:
|
||||
else:
|
||||
doAssert false
|
||||
|
||||
var matches: array[0..5, string]
|
||||
if match("abcdefg", peg"c {d} ef {g}", matches, 2):
|
||||
doAssert matches[0] == "d"
|
||||
doAssert matches[1] == "g"
|
||||
|
||||
@@ -10,20 +10,21 @@
|
||||
## Include for the tester that contains test suites that test special features
|
||||
## of the compiler.
|
||||
|
||||
# included from tester.nim
|
||||
# ---------------- ROD file tests ---------------------------------------------
|
||||
|
||||
const
|
||||
rodfilesDir = "tests/rodfiles"
|
||||
nimcacheDir = rodfilesDir / "nimcache"
|
||||
|
||||
proc delNimCache() =
|
||||
let dir = rodfilesDir / "nimcache"
|
||||
proc delNimCache() =
|
||||
try:
|
||||
removeDir(dir)
|
||||
removeDir(nimcacheDir)
|
||||
except EOS:
|
||||
echo "[Warning] could not delete: ", dir
|
||||
echo "[Warning] could not delete: ", nimcacheDir
|
||||
|
||||
proc plusCache(options: string): string = return options &
|
||||
" --symbolFiles:on --nimcache:./nimcache"
|
||||
" --symbolFiles:on --nimcache:" & nimcacheDir
|
||||
|
||||
proc runRodFiles(r: var TResults, options: string) =
|
||||
template test(filename: expr): stmt =
|
||||
|
||||
Reference in New Issue
Block a user