]> Cypherpunks repositories - gostls13.git/commitdiff
output of fmt has changed for %g
authorRob Pike <r@golang.org>
Mon, 24 Nov 2008 19:59:23 +0000 (11:59 -0800)
committerRob Pike <r@golang.org>
Mon, 24 Nov 2008 19:59:23 +0000 (11:59 -0800)
R=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=19909
CL=19909

test/fmt_test.go

index b2f44429c4a3327e478a0a45c40103ad89051364..27c986b43e5c8ab3ab4319d544de8957ed28835c 100644 (file)
@@ -52,7 +52,7 @@ func main() {
        E(f.s("\tf   ").f64(1234.5678e-8), "\tf   0.000012");
        E(f.s("\tf   ").f64(-7.0), "\tf   -7.000000");
        E(f.s("\tf   ").f64(-1e-9), "\tf   -0.000000");
-       E(f.s("\tg   ").g64(1234.5678e3), "\tg   1234567.8");
+       E(f.s("\tg   ").g64(1234.5678e3), "\tg   1.2345678e+06");
        E(f.s("\tg   ").g64(1234.5678e-8), "\tg   1.2345678e-05");
        E(f.s("\tg   ").g64(-7.0), "\tg   -7");
        E(f.s("\tg   ").g64(-1e-9), "\tg   -1e-09");