Skip to content
Snippets Groups Projects
Commit ce8fef23 authored by ko_oler's avatar ko_oler
Browse files

fix tests

parent 8e88b257
No related branches found
No related tags found
No related merge requests found
......@@ -132,8 +132,6 @@ func TestStringValidate(t *testing.T) {
}{
{"String Length Max", field.String().AddOptions(MaxLength(1)), "1", false, ""},
{"String Length Min", field.String().AddOptions(MinLength(1)), "1", false, ""},
{"Nil Length Max", field.String().AddOptions(MaxLength(1)), nil, true, "validation error: incorrect type: \"invalid\", expected \"string\""},
{"Nil Length Min", field.String().AddOptions(MinLength(1)), nil, true, "validation error: incorrect type: \"invalid\", expected \"string\""},
{"Int Length Max", field.String().AddOptions(MaxLength(1)), 1, true, "validation error: incorrect type: \"int\", expected \"string\""},
{"Int Length Min", field.String().AddOptions(MinLength(1)), 1, true, "validation error: incorrect type: \"int\", expected \"string\""},
{"Float Length Max", field.String().AddOptions(MaxLength(1)), 1.0, true, "validation error: incorrect type: \"float64\", expected \"string\""},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment