Compare commits

..

3 Commits

Author SHA1 Message Date
Nise Void 6942b984c1
Fix inconsistent test name 2021-11-11 10:44:47 +01:00
Nise Void e810582264
Add go.mod 2021-11-11 10:44:34 +01:00
Crow Crowcrow 7405c824fe Add lte and gte
Co-authored-by: Crow Crowcrow <crow@fuyu.moe>
Co-committed-by: Crow Crowcrow <crow@fuyu.moe>
2021-11-11 10:43:42 +01:00
2 changed files with 4 additions and 1 deletions

3
go.mod Normal file
View File

@ -0,0 +1,3 @@
module git.fuyu.moe/Fuyu/validate
go 1.17

View File

@ -143,7 +143,7 @@ func TestRuleGteLte(t *testing.T) {
check(t, fail5, 1)
}
func TestLenMinMax(t *testing.T) {
func TestRuleLenMinMax(t *testing.T) {
type s struct {
A string `validate:"len=3"`
B []int `validate:"min=2"`