improve several tests in testament (#18635)
* silence error output from template_various.nim * any => auto in tests * avoid showing failed for parseSpec since this is expected behavior in 2 cases: tincludefile.nim, tnav1.nim * enforce InheritFromException * fixup
This commit is contained in:
parent
9269a72f6f
commit
24445d31b3
7 changed files with 38 additions and 39 deletions
|
|
@ -94,7 +94,7 @@ block generic_templates:
|
|||
|
||||
var i3: int = t1[int]("xx")
|
||||
|
||||
|
||||
from strutils import contains
|
||||
|
||||
block tgetast_typeliar:
|
||||
proc error(s: string) = quit s
|
||||
|
|
@ -111,7 +111,9 @@ block tgetast_typeliar:
|
|||
var message : NimNode = newLit(condition.repr)
|
||||
# echo message
|
||||
result = getAst assertOrReturn2(condition, message)
|
||||
echo result.repr
|
||||
# echo result.repr
|
||||
let s = result.repr
|
||||
doAssert """error("Assertion failed:""" in s
|
||||
|
||||
proc point(size: int16): tuple[x, y: int16] =
|
||||
# returns random point in square area with given `size`
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ proc concreteProc(x: int) =
|
|||
forStatic i, 0..3:
|
||||
echo i
|
||||
|
||||
proc genericProc(x: any) =
|
||||
proc genericProc(x: auto) =
|
||||
forStatic i, 0..3:
|
||||
echo i
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue