testament megatest: furher refactorings making more tests green

This commit is contained in:
Araq
2018-12-10 12:36:13 +01:00
parent ac785b0623
commit 0d99ff6113
4 changed files with 92 additions and 85 deletions

View File

@@ -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 ""