aboutsummaryrefslogtreecommitdiff
path: root/test/float_lit.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2008-03-26 09:28:57 -0700
committerRobert Griesemer <gri@golang.org>2008-03-26 09:28:57 -0700
commit2f5b4d9893051be6bb946954a50c34b694957612 (patch)
tree34456e7f25b74ab46ae7f6fe3b123b9155edfc87 /test/float_lit.go
parent67aafa6f5718352f0ada5abd9687f94df9a2d534 (diff)
downloadgo-2f5b4d9893051be6bb946954a50c34b694957612.tar.gz
go-2f5b4d9893051be6bb946954a50c34b694957612.zip
- new directory structure
SVN=113851
Diffstat (limited to 'test/float_lit.go')
-rw-r--r--test/float_lit.go70
1 files changed, 70 insertions, 0 deletions
diff --git a/test/float_lit.go b/test/float_lit.go
new file mode 100644
index 0000000000..11decaffb1
--- /dev/null
+++ b/test/float_lit.go
@@ -0,0 +1,70 @@
+// $G $F.go && $L $F.$A && ./$A.out
+
+// Copyright 2009 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package main
+
+func main() {
+ [ 0.,
+ +10.,
+ -210.,
+
+ .0,
+ +.01,
+ -.012,
+
+ 0.0,
+ +10.01,
+ -210.012,
+
+ 0E+1,
+ +10e2,
+ -210e3,
+
+ 0E-1,
+ +0e23,
+ -0e345,
+
+ 0E1,
+ +10e23,
+ -210e345,
+
+ 0.E1,
+ +10.e+2,
+ -210.e-3,
+
+ .0E1,
+ +.01e2,
+ -.012e3,
+
+ 0.0E1,
+ +10.01e2,
+ -210.012e3,
+
+ 0.E+12,
+ +10.e23,
+ -210.e34,
+
+ .0E-12,
+ +.01e23,
+ -.012e34,
+
+ 0.0E12,
+ +10.01e23,
+ -210.012e34,
+
+ 0.E123,
+ +10.e+234,
+ -210.e-345,
+
+ .0E123,
+ +.01e234,
+ -.012e345,
+
+ 0.0E123,
+ +10.01e234,
+ -210.012e345
+ ]
+}