Unverified Commit a4ea3d61 authored by Hanzei's avatar Hanzei Committed by GitHub
Browse files

Check more errors in tests (#94)

parent 9fd60cc3
......@@ -131,7 +131,8 @@ func TestConversionURLQuery(t *testing.T) {
func TestConversionURLQueryNoSliceKeySuffix(t *testing.T) {
m := getURLQueryMap()
objx.SetURLValuesSliceKeySuffix(objx.URLValuesSliceKeySuffixEmpty)
err := objx.SetURLValuesSliceKeySuffix(objx.URLValuesSliceKeySuffixEmpty)
require.Nil(t, err)
u, err := m.URLQuery()
assert.Nil(t, err)
......@@ -147,7 +148,8 @@ func TestConversionURLQueryNoSliceKeySuffix(t *testing.T) {
func TestConversionURLQueryIndexSliceKeySuffix(t *testing.T) {
m := getURLQueryMap()
m.Set("mapSlice", []objx.Map{{"age": 40, "sex": "male"}, {"height": 152}})
objx.SetURLValuesSliceKeySuffix(objx.URLValuesSliceKeySuffixIndex)
err := objx.SetURLValuesSliceKeySuffix(objx.URLValuesSliceKeySuffixIndex)
require.Nil(t, err)
u, err := m.URLQuery()
assert.Nil(t, err)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment