go-ozzo / ozzo-validation

An idiomatic Go (golang) validation package. Supports configurable and extensible validation rules (validators) using normal language constructs instead of error-prone struct tags.
MIT License
3.73k stars 224 forks source link

Fix length comparison logic #78

Closed hulloitskai closed 5 years ago

hulloitskai commented 5 years ago

The comparison logic here doesn't seem to be right; consider the following case: https://play.golang.org/p/Hgsr3P6HAC4

coveralls commented 5 years ago

Coverage Status

Coverage remained the same at 99.848% when pulling a14a487c7f6ac20bc9ed41aeabd14b8c2ec333b0 on stevenxie:master into 199b55b36bc1af151e6eea487cc92ffa5b460b81 on go-ozzo:master.

coveralls commented 5 years ago

Coverage Status

Coverage remained the same at 99.848% when pulling b62143f23452f42b991b47f2055598973486bda8 on stevenxie:master into 199b55b36bc1af151e6eea487cc92ffa5b460b81 on go-ozzo:master.