updated binder test cases
This commit is contained in:
parent
91bbbc4bdb
commit
1679c88e6d
|
@ -42,15 +42,15 @@ func TestBindBody(t *testing.T) {
|
||||||
strings.NewReader(
|
strings.NewReader(
|
||||||
url.Values{
|
url.Values{
|
||||||
"string": []string{"str"},
|
"string": []string{"str"},
|
||||||
"stings": []string{"str1", "str2"},
|
"stings": []string{"str1", "str2", ""},
|
||||||
"number": []string{"-123"},
|
"number": []string{"-123"},
|
||||||
"numbers": []string{"123", "456"},
|
"numbers": []string{"123", "456.789"},
|
||||||
"bool": []string{"true"},
|
"bool": []string{"true"},
|
||||||
"bools": []string{"true", "false"},
|
"bools": []string{"true", "false"},
|
||||||
}.Encode(),
|
}.Encode(),
|
||||||
),
|
),
|
||||||
echo.MIMEApplicationForm,
|
echo.MIMEApplicationForm,
|
||||||
`{"bool":true,"bools":[true,false],"number":-123,"numbers":[123,456],"stings":["str1","str2"],"string":"str"}`,
|
`{"bool":true,"bools":[true,false],"number":-123,"numbers":[123,456.789],"stings":["str1","str2",""],"string":"str"}`,
|
||||||
false,
|
false,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue