number tests

This commit is contained in:
Aneurin Barker Snook
2023-10-08 16:20:21 +01:00
parent 7cb1900ec1
commit 1cb434327a
6 changed files with 51 additions and 43 deletions
+2 -2
View File
@@ -16,8 +16,8 @@ func TestChars(t *testing.T) {
{Input: "abcd 1234", C: hexRange, Err: ErrDisallowedChars},
}
for _, tc := range testCases {
t.Logf("Testing %q against %q", tc.Input, tc.C)
for n, tc := range testCases {
t.Logf("(%d) Testing %q against %q", n, tc.Input, tc.C)
f := Chars(tc.C)
err := f(tc.Input)