Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/foxcpp/maddy
/ TestIsASCII
Function
TestIsASCII
framework/address/norm_test.go:81–88 ·
view source on GitHub ↗
(t *testing.T)
Source
from the content-addressed store, hash-verified
79
}
80
81
func
TestIsASCII(t *testing.T) {
82
if
!IsASCII(
"hello"
) {
83
t.Errorf(
"'hello' is ASCII"
)
84
}
85
if
IsASCII(
"тест"
) {
86
t.Errorf(
"'тест' is non-ASCII"
)
87
}
88
}
Callers
nothing calls this directly
Calls
1
IsASCII
Function · 0.85
Tested by
no test coverage detected