Skip to content
Snippets Groups Projects
Commit 473738b2 authored by ko_oler's avatar ko_oler
Browse files

fix numbering

parent 300a63bf
No related branches found
No related tags found
No related merge requests found
......@@ -22,13 +22,13 @@ func TestNumberField_Decode(t *testing.T) {
{"Correct", Number("int"), 2.6, int64(3), false}, // #5
{"Convert error", Number(NumberFormatInt), math.MaxFloat64, nil, true}, // #6
{"Convert error", Number(NumberFormatInt), float64(-9223372036854776000.0), nil, true}, // #7
{"Convert error", Number(NumberFormatInt), float64(9223372036854776000.0), nil, true}, // #7
{"Convert error", Number(NumberFormatInt), float64(9223372036854776000.0), nil, true}, // #8
{"Correct", Number("float"), int8(2), 2.0, false}, // #6
{"Correct", Number("float"), 2.2, 2.2, false}, // #7
{"Correct", Number("float"), 2, 2.0, false}, // #8
{"Correct", Number("float"), float32(2.2), 2.200000047683716, false}, // #9
{"Correct", Number("float"), int64(2), 2.0, false}, // #10
{"Correct", Number("float"), int8(2), 2.0, false}, // #9
{"Correct", Number("float"), 2.2, 2.2, false}, // #10
{"Correct", Number("float"), 2, 2.0, false}, // #11
{"Correct", Number("float"), float32(2.2), 2.200000047683716, false}, // #12
{"Correct", Number("float"), int64(2), 2.0, false}, // #13
{"Wrong data", Number("int"), "", nil, true}, // #0
{"Wrong data", Number("int"), []byte(""), nil, true}, // #1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment