From 0d99ff6113245fc105b34940ab9a111cf4576361 Mon Sep 17 00:00:00 2001 From: Araq Date: Mon, 10 Dec 2018 12:36:13 +0100 Subject: testament megatest: furher refactorings making more tests green --- tests/deps/jester-#head/jester/private/utils.nim | 2 +- tests/method/tmultim.nim | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'tests') diff --git a/tests/deps/jester-#head/jester/private/utils.nim b/tests/deps/jester-#head/jester/private/utils.nim index 0ddc5945b..16dce61fe 100644 --- a/tests/deps/jester-#head/jester/private/utils.nim +++ b/tests/deps/jester-#head/jester/private/utils.nim @@ -188,7 +188,7 @@ when not declared(normalizePath) and not declared(normalizedPath): result = path normalizePath(result) -when true: +when false: var r = {:}.newStringTable parseUrlQuery("FirstName=Mickey", r) echo r 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 "" -- cgit 1.4.1-2-gfad0