make run the default action of a test in tester

This commit is contained in:
Arne Döring
2018-11-13 15:21:14 +01:00
committed by Araq
parent 610283b9b0
commit 031bfdec6f
50 changed files with 313 additions and 46 deletions

View File

@@ -1,3 +1,7 @@
discard """
action: compile
"""
# Covariance is not type safe:
type
@@ -14,4 +18,3 @@ proc bp(x: var TB) = x.b[high(x.b)] = -1
var f = cast[proc (x: var TA) {.nimcall.}](bp)
var a: TA
f(a) # bp expects a TB, but gets a TA

View File

@@ -1,3 +1,7 @@
discard """
output: "[Suite] object basic methods"
"""
import unittest
type Obj = object