Skip to content

Commit

Permalink
add test to validate array of int
Browse files Browse the repository at this point in the history
  • Loading branch information
ross96D committed Dec 25, 2023
1 parent 7a157b3 commit 11ffd84
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions validate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,11 @@ var validateTests = []struct {
typ: reflect.TypeOf([]any{}),
input: []any{1, 2, 3},
},
{
name: "array success",
typ: reflect.TypeOf([]int{}),
input: []int{1, 2, 3},
},
{
name: "expected array",
typ: reflect.TypeOf([]any{}),
Expand Down

0 comments on commit 11ffd84

Please sign in to comment.