From 1679c88e6d215e6b3bdf08df91d6cceadc9725fb Mon Sep 17 00:00:00 2001 From: Gani Georgiev Date: Mon, 26 Jun 2023 13:04:15 +0300 Subject: [PATCH] updated binder test cases --- tools/rest/multi_binder_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/rest/multi_binder_test.go b/tools/rest/multi_binder_test.go index 144733c6..feb45bec 100644 --- a/tools/rest/multi_binder_test.go +++ b/tools/rest/multi_binder_test.go @@ -42,15 +42,15 @@ func TestBindBody(t *testing.T) { strings.NewReader( url.Values{ "string": []string{"str"}, - "stings": []string{"str1", "str2"}, + "stings": []string{"str1", "str2", ""}, "number": []string{"-123"}, - "numbers": []string{"123", "456"}, + "numbers": []string{"123", "456.789"}, "bool": []string{"true"}, "bools": []string{"true", "false"}, }.Encode(), ), 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, }, }