summaryrefslogtreecommitdiff
path: root/test/float_lit.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2008-05-08 17:12:15 -0700
committerRobert Griesemer <gri@golang.org>2008-05-08 17:12:15 -0700
commita718ff42cea6e7490261e23e9fb37b0caa33be4e (patch)
tree6fc2b040e6b32367f31b9d6b064fad5562a300a9 /test/float_lit.go
parentc06e4d753e4bf662dd508ce4fe4226aaca0d7287 (diff)
downloadgolang-a718ff42cea6e7490261e23e9fb37b0caa33be4e.tar.gz
- changed literal syntax to use the convert notation
- fixed issued with function declarations/function literals - added more tests and fixed existing tests SVN=118167
Diffstat (limited to 'test/float_lit.go')
-rw-r--r--test/float_lit.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/float_lit.go b/test/float_lit.go
index 11decaffb..a5413d980 100644
--- a/test/float_lit.go
+++ b/test/float_lit.go
@@ -7,7 +7,8 @@
package main
func main() {
- [ 0.,
+ []float(
+ 0.,
+10.,
-210.,
@@ -66,5 +67,5 @@ func main() {
0.0E123,
+10.01e234,
-210.012e345
- ]
+ );
}