diff options
Diffstat (limited to 'test/stringslib.go')
| -rw-r--r-- | test/stringslib.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/stringslib.go b/test/stringslib.go index cb288b813..e9a919cad 100644 --- a/test/stringslib.go +++ b/test/stringslib.go @@ -109,4 +109,9 @@ func main() { // should work if int == int64: is there some way to know? // if itoa(-1<<63) != "-9223372036854775808" { panic("itoa 1<<63") } + + { + a, ok := strings.atof64("-1.2345e4"); + if !ok || a != -12345. { panic(a, "atof64 -1.2345e4") } + } } |
