summaryrefslogtreecommitdiff
path: root/lib/std/test/fmt.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-09-24 08:24:50 -0700
committerOri Bernstein <ori@eigenstate.org>2016-09-24 08:27:26 -0700
commit606bce2a5601d6a124da33d007e071ed9d43ff45 (patch)
tree3807d07495d841440e0c701fac807cc7f04eccb3 /lib/std/test/fmt.myr
parent4eb7219a229bc8f9ac71a3a46f3fbfa875f32452 (diff)
downloadmc-606bce2a5601d6a124da33d007e071ed9d43ff45.tar.gz
Correctly format zero floats.
Diffstat (limited to 'lib/std/test/fmt.myr')
-rw-r--r--lib/std/test/fmt.myr1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/std/test/fmt.myr b/lib/std/test/fmt.myr
index de8a5a9..4d7f30e 100644
--- a/lib/std/test/fmt.myr
+++ b/lib/std/test/fmt.myr
@@ -62,6 +62,7 @@ const builtins = {
check("123", "{}", 123)
check("7b", "{x}", 123)
check("0x7b", "0x{x}", 123)
+ check("0.0", "{}", 0.0)
check("0.3", "{}", 0.3)
check("666.91972", "{}", 666.91972)
check("1.0001", "{}", 1.0001)