Source file test/fixedbugs/bug402.go

     1  // run
     2  
     3  // Copyright 2012 The Go Authors. All rights reserved.
     4  // Use of this source code is governed by a BSD-style
     5  // license that can be found in the LICENSE file.
     6  
     7  package main
     8  
     9  import "fmt"
    10  
    11  var a = []int64{
    12  	0.0005 * 1e9,
    13  	0.001 * 1e9,
    14  	0.005 * 1e9,
    15  	0.01 * 1e9,
    16  	0.05 * 1e9,
    17  	0.1 * 1e9,
    18  	0.5 * 1e9,
    19  	1 * 1e9,
    20  	5 * 1e9,
    21  }
    22  
    23  func main() {
    24  	s := ""
    25  	for _, v := range a {
    26  		s += fmt.Sprint(v) + " "
    27  	}
    28  	if s != "500000 1000000 5000000 10000000 50000000 100000000 500000000 1000000000 5000000000 " {
    29  		panic(s)
    30  	}
    31  }
    32  

View as plain text