asaskevich / govalidator

[Go] Package of validators and sanitizers for strings, numerics, slices and structs
MIT License
6.04k stars 555 forks source link

Add test to verify behavior of required check on byte slice. #373

Closed Coderrob closed 4 years ago

Coderrob commented 4 years ago

Description

I went through the Issue list and wanted to see if I could contribute in a small way. Noticed Issue https://github.com/asaskevich/govalidator/issues/334 and decided to take a look.

Added a test case to the validator_test.go to cover the reported failure. Unable to reproduce given the same required value and input. At this point it may be assumed this behavior has been addressed in more recent updates.

Adding test case to cover the behavior for the future.

asaskevich commented 4 years ago

Thank you!