mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
parent
114f73f822
commit
d8bc797ed5
2 changed files with 3 additions and 5 deletions
|
|
@ -51,9 +51,7 @@ func (j *decoder) Int64(i int64) { j.value = float64(i) }
|
||||||
|
|
||||||
func (j *decoder) Uint64(i uint64) { j.value = float64(i) }
|
func (j *decoder) Uint64(i uint64) { j.value = float64(i) }
|
||||||
|
|
||||||
func (j *decoder) Float64(f float64) {
|
func (j *decoder) Float64(f float64) { j.value = float64(f) }
|
||||||
j.value = float64(f)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (j *decoder) String(s string) { j.value = s }
|
func (j *decoder) String(s string) { j.value = s }
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -104,8 +104,8 @@ func assertResult(t *testing.T, results, expected interface{}) {
|
||||||
}
|
}
|
||||||
|
|
||||||
type decodeTest struct {
|
type decodeTest struct {
|
||||||
s string;
|
s string;
|
||||||
r interface{};
|
r interface{};
|
||||||
}
|
}
|
||||||
|
|
||||||
var tests = []decodeTest{
|
var tests = []decodeTest{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue