add all validator, simplify error messages

This commit is contained in:
Aneurin Barker Snook
2023-10-07 13:42:17 +01:00
parent c2efe16dc0
commit c74486d122
8 changed files with 98 additions and 19 deletions
+2 -2
View File
@@ -24,7 +24,7 @@ func TestIn(t *testing.T) {
for _, tc := range strTestCases {
t.Logf("%q in %s", tc.Input, strings.Join(tc.S, ", "))
f := In(tc.S)
f := In(tc.S...)
err := f(tc.Input)
if tc.Err {
@@ -53,7 +53,7 @@ func TestIn(t *testing.T) {
}
t.Logf("%d in %s", tc.Input, strings.Join(intf, ", "))
f := In(tc.S)
f := In(tc.S...)
err := f(tc.Input)
if tc.Err {