diff options
author | Araq <rumpf_a@web.de> | 2018-12-10 12:36:13 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-12-11 21:23:24 +0100 |
commit | 0d99ff6113245fc105b34940ab9a111cf4576361 (patch) | |
tree | c8f166170247dcb00ee71c41bf1b2699a9229443 /tests/method | |
parent | ac785b06236dbc228a3b755c11bb3b1330ccc3ab (diff) | |
download | Nim-0d99ff6113245fc105b34940ab9a111cf4576361.tar.gz |
testament megatest: furher refactorings making more tests green
Diffstat (limited to 'tests/method')
-rw-r--r-- | tests/method/tmultim.nim | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/method/tmultim.nim b/tests/method/tmultim.nim index 0e68b660f..7023e18bf 100644 --- a/tests/method/tmultim.nim +++ b/tests/method/tmultim.nim @@ -4,7 +4,9 @@ collide: unit, thing collide: unit, thing collide: thing, unit collide: thing, thing -collide: unit, thing | collide: unit, thing | collide: thing, unit | +collide: unit, thing | +collide: unit, thing | +collide: thing, unit | do nothing ''' joinable: false @@ -56,10 +58,10 @@ method collide(a, b: Thing) {.base, inline.} = quit "to override!" method collide[T](a: Thing, b: Unit[T]) {.inline.} = - write stdout, "collide: thing, unit | " + echo "collide: thing, unit |" method collide[T](a: Unit[T], b: Thing) {.inline.} = - write stdout, "collide: unit, thing | " + echo "collide: unit, thing |" proc test(a, b: Thing) {.inline.} = collide(a, b) @@ -70,7 +72,6 @@ var collide(bbb, Thing(ccc)) test(bbb, ccc) collide(aaa, bbb) -echo "" |