megatest checks output and nimout

This commit is contained in:
Arne Döring 2018-12-05 00:42:56 +01:00 • committed by Araq
commit 3859878db8
16 changed files with 218 additions and 202 deletions

View file

@ -26,9 +26,11 @@ proc safeReadLine(): TMaybe[string] =
if r == "": return Nothing[string]()
else: return Just(r)
when isMainModule:
proc main() =
var Test = Just("Test")
echo(Test.value)
var mSomething = safeReadLine()
echo(mSomething.value)
mSomething = safeReadLine()
main()