This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.
packagestr
import"testing"
funcTestIsBlank(t*testing.T){
vartests=[]struct{
paramstring
expectedbool
}{
{"",true},
{" \t\n\r\v\f\x00",true},
{"0",false},
{"hello",false},
}
for_,test:=rangetests{
actual:=StrTool.IsBlank(test.param)
ifactual!=test.expected{
t.Errorf("%s must be %t",test.param,test.expected)