mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-21 16:31:39 +00:00
re-enable rodfiles tests; fixes #91
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
discard """
|
||||
file: "ttypenoval.nim"
|
||||
line: 38
|
||||
errormsg: "a type has no value"
|
||||
errormsg: "type mismatch: got (typedesc{int}) but expected 'int'"
|
||||
"""
|
||||
|
||||
# A min-heap.
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
discard """
|
||||
disabled: true
|
||||
output: '''derived class
|
||||
base class
|
||||
'''
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
discard """
|
||||
disabled: true
|
||||
output: '''derived class 2
|
||||
base class
|
||||
'''
|
||||
|
||||
14
tests/run/tenumitems.nim
Normal file
14
tests/run/tenumitems.nim
Normal file
@@ -0,0 +1,14 @@
|
||||
discard """
|
||||
output: "A\nB\nC"
|
||||
"""
|
||||
|
||||
type TAlphabet = enum
|
||||
A, B, C
|
||||
|
||||
iterator items(E: typedesc): E =
|
||||
for v in low(E)..high(E):
|
||||
yield v
|
||||
|
||||
for c in TAlphabet:
|
||||
echo($c)
|
||||
|
||||
@@ -22,7 +22,8 @@ proc delNimCache() =
|
||||
except EOS:
|
||||
echo "[Warning] could not delete: ", dir
|
||||
|
||||
proc plusCache(options: string): string = return options & " --symbolFiles:on"
|
||||
proc plusCache(options: string): string = return options &
|
||||
" --symbolFiles:on --nimcache:./nimcache"
|
||||
|
||||
proc runRodFiles(r: var TResults, options: string) =
|
||||
template test(filename: expr): stmt =
|
||||
|
||||
Reference in New Issue
Block a user