Skip to content

Commit

Permalink
Merge pull request #373 from Coderrob/issue-334-test
Browse files Browse the repository at this point in the history
Add test to verify behavior of required check on byte slice.
  • Loading branch information
asaskevich committed Apr 28, 2020
2 parents 4597be2 + 5b6e3aa commit 4a7f9ba
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions validator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3336,6 +3336,14 @@ func TestRequired(t *testing.T) {
}{},
false,
},
{
struct {
TestByteSlice testByteSlice `valid:"required"`
}{
[]byte{93, 93, 0, 75},
},
true,
},
{
struct {
TestStringStringMap testStringStringMap `valid:"required"`
Expand Down

0 comments on commit 4a7f9ba

Please sign in to comment.