Fixed output for writeText(s,float) and added unit test

This commit is contained in:
John Dupuy 2020-05-14 17:44:39 -05:00 • committed by zah
commit 5e17ffae3a
2 changed files with 16 additions and 6 deletions

View file

@ -236,3 +236,15 @@ suite "output stream":
let resultsAreEqual = nimSeq == memStream.getOutput
check resultsAreEqual
test "float output":
let basic: float64 = 12345.125
let small: float32 = 12345.125
let large: float64 = 9.99e+20
let tiny: float64 = -2.25e-35
outputText basic
outputText small
outputText large
outputText tiny
checkOutputsMatch()