Skip to content

Commit

Permalink
Check more errors in tests (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanzei authored Apr 15, 2019
1 parent 9fd60cc commit a4ea3d6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions conversions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit a4ea3d6

Please sign in to comment.