updated binder test cases

This commit is contained in:
Gani Georgiev 2023-06-26 13:04:15 +03:00
parent 91bbbc4bdb
commit 1679c88e6d
1 changed files with 3 additions and 3 deletions

View File

@ -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,
}, },
} }