If it's really just for simple tests can't you use...
# getting-started
k
If it's really just for simple tests can't you use
assert(a == b) { "a wasn't equal to b" }
from the stdlib?
n
I'm trying
assert
, it at least compiles without using junit which i didn't expect, but it doesn't appear to do anything?
assert(1==2) { "one not equal 2" }
it runs
but does nothing
trying
Copy code
println(solve("x"))
assert(2==2) { "two not equal 2" }
assert(1==2) { "one not equal 2" }
println(solve("y"))
and i just get
Copy code
x
y
solve
just returns whatever you pass in for the moment
k
Huh really? I'll test that in a minute.
n
ok it works when using kotlinc
gives a stack trace though so i'll probably still use a reinvent the wheel test wrapper to give a more concise output
thanks for the help though 🙂
k
Ah okay, good luck!