1
// Copyright 2011 The Go Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style
3
// license that can be found in the LICENSE file.
8
addTestCases(strconvTests, strconvFn)
11
var strconvTests = []testCase{
26
strconv.AtofN("1.2", 64)
27
strconv.Ftoa32(1.2, 'g', 17)
28
strconv.Ftoa64(1.2, 'g', 17)
29
strconv.FtoaN(1.2, 'g', 17, 64)
33
strconv.Btoi64("1234", 5)
37
strconv.Btoui64("1234", 5)
42
strconv.Itob64(1234, 5)
47
strconv.Uitob64(1234, 5)
49
strconv.Uitoa(uint(x))
60
strconv.ParseBool("true")
61
strconv.FormatBool(false)
63
strconv.ParseFloat("1.2", 32)
64
strconv.ParseFloat("1.2", 64)
65
strconv.ParseFloat("1.2", 64)
66
strconv.FormatFloat(float64(1.2), 'g', 17, 32)
67
strconv.FormatFloat(1.2, 'g', 17, 64)
68
strconv.FormatFloat(1.2, 'g', 17, 64)
71
strconv.ParseInt("3", 10, 64)
72
strconv.ParseInt("1234", 5, 64)
74
strconv.ParseUint("3", 10, 0)
75
strconv.ParseUint("3", 10, 64)
76
strconv.ParseUint("1234", 5, 64)
79
strconv.FormatInt(1234, 10)
80
strconv.FormatInt(int64(123), 5)
81
strconv.FormatInt(1234, 5)
83
strconv.FormatUint(uint64(123), 10)
84
strconv.FormatUint(1234, 10)
85
strconv.FormatUint(uint64(123), 5)
86
strconv.FormatUint(1234, 5)
88
strconv.FormatUint(uint64(x), 10)
89
strconv.FormatUint(uint64(f(x)), 10)