Skip to content

Commit

Permalink
test(form): fix test code for array collection format in form binding
Browse files Browse the repository at this point in the history
  • Loading branch information
slowhigh committed Aug 16, 2024
1 parent b8cfe5a commit 70108c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion binding/form_mapping_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
"time"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

func TestMappingBaseTypes(t *testing.T) {
Expand Down Expand Up @@ -288,7 +289,7 @@ func TestMappingCollectionFormat(t *testing.T) {
"array_tsv": {"1 2"},
"array_pipes": {"1|2"},
}, "form")
assert.NoError(t, err)
require.NoError(t, err)

assert.Equal(t, []int{1, 2}, s.SliceMulti)
assert.Equal(t, []int{1, 2}, s.SliceCsv)
Expand Down

0 comments on commit 70108c0

Please sign in to comment.