mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-15 10:38:14 +02:00
added negative number test
This commit is contained in:
1 parent
2e8e835a68
commit
edd2eaae88
2 files changed
+3
-3
No files matched your search
@@ -43,14 +43,14 @@ func TestBindBody(t *testing.T) {
|
||||
url.Values{
|
||||
"string": []string{"str"},
|
||||
"stings": []string{"str1", "str2"},
|
||||
"number": []string{"123"},
|
||||
"number": []string{"-123"},
|
||||
"numbers": []string{"123", "456"},
|
||||
"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"],"stings":["str1","str2"],"string":"str"}`,
|
||||
false,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user