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
|
|
@ -395,7 +395,7 @@ block:
|
|||
template bar2[F,T](x: FooUn[F,T]): int = 1
|
||||
template bar2[F,T1,T2](x: FooBi[F,T1,T2]): int = 2
|
||||
|
||||
proc test(x: any, n: int) =
|
||||
proc test(x: auto, n: int) =
|
||||
doAssert(foo1(x) == n)
|
||||
doAssert(foo2(x) == n)
|
||||
doAssert(bar1(x) == n)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue