diff options
author | Arne Döring <arne.doering@gmx.net> | 2018-11-13 15:21:14 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-11-23 11:58:28 +0100 |
commit | 031bfdec6f7798b99cc7bf9473a08048228c3d2a (patch) | |
tree | bd9b3ee9fbbaca154f37649f7f3cabe59cfdc349 /tests/objects | |
parent | 610283b9b0d48b1714bef2969b402b77410ce4dd (diff) | |
download | Nim-031bfdec6f7798b99cc7bf9473a08048228c3d2a.tar.gz |
make run the default action of a test in tester
Diffstat (limited to 'tests/objects')
-rw-r--r-- | tests/objects/tobjcov.nim | 5 | ||||
-rw-r--r-- | tests/objects/tobject.nim | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/tests/objects/tobjcov.nim b/tests/objects/tobjcov.nim index c766adde0..817c1fcda 100644 --- a/tests/objects/tobjcov.nim +++ b/tests/objects/tobjcov.nim @@ -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 - diff --git a/tests/objects/tobject.nim b/tests/objects/tobject.nim index cdb8f80db..61ef7442e 100644 --- a/tests/objects/tobject.nim +++ b/tests/objects/tobject.nim @@ -1,3 +1,7 @@ +discard """ +output: "[Suite] object basic methods" +""" + import unittest type Obj = object |