Fix allowed characters test.
This commit is contained in:
parent
45d4bb4e8f
commit
c1f1da6c92
@ -12,7 +12,7 @@ import "testing"
|
|||||||
func validateChars(t *testing.T, u string, chars []byte) {
|
func validateChars(t *testing.T, u string, chars []byte) {
|
||||||
for _, c := range u {
|
for _, c := range u {
|
||||||
var present bool
|
var present bool
|
||||||
for _, a := range StdChars {
|
for _, a := range chars {
|
||||||
if rune(a) == c {
|
if rune(a) == c {
|
||||||
present = true
|
present = true
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user