summaryrefslogtreecommitdiff
path: root/lib/std/test/fmt.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-10-26 22:23:20 -0700
committerOri Bernstein <ori@eigenstate.org>2016-10-26 22:23:20 -0700
commit21b5fb876c5f1e6188a3a6b0e9e77311f06525f0 (patch)
tree21f4d4ddcc29ec69091a3a1c2842cfdcb4a295e1 /lib/std/test/fmt.myr
parent5e93d7d5973263c91da1dd085c0564b4516f11d3 (diff)
downloadmc-21b5fb876c5f1e6188a3a6b0e9e77311f06525f0.tar.gz
Fix floating point printing.
Right, we actually need to fill the trailing zeros.
Diffstat (limited to 'lib/std/test/fmt.myr')
-rw-r--r--lib/std/test/fmt.myr2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/std/test/fmt.myr b/lib/std/test/fmt.myr
index d28b67a..a1bf9e6 100644
--- a/lib/std/test/fmt.myr
+++ b/lib/std/test/fmt.myr
@@ -62,6 +62,8 @@ const builtins = {
check("0x7b", "0x{x}", 123)
check("0.0", "{}", 0.0)
check("0.3", "{}", 0.3)
+ check("1.0", "{}", 1.0)
+ check("100.0", "{}", 100.0)
check("666.91972", "{}", 666.91972)
check("1.0001", "{}", 1.0001)
check("0.000101323461002", "{}", 0.000101323461002)