makes tests green again

This commit is contained in:
Andreas Rumpf 2016-05-28 09:49:16 +02:00
commit 628ad4b753

View file

@ -15,8 +15,9 @@ template toFloatHelper(result: expr; tooSmall, tooLarge: stmt) {.immediate.} =
tooLarge tooLarge
proc toFloat*(a: int): float = proc toFloat*(a: int): float =
toFloatHelper(result) toFloatHelper(result) do:
do: raise newException(ValueError, "number too small"): raise newException(ValueError, "number too small")
do:
raise newException(ValueError, "number too large") raise newException(ValueError, "number too large")
echo toFloat(8) echo toFloat(8)