Files
commons/string_test.go
George Suntres ebdf370c23 Initial import
2026-03-29 10:32:25 -04:00

28 lines
486 B
Go

package commons
import (
"testing"
)
func TestStringNormalize(t *testing.T) {
v := " some text here "
vv := StringNormalize(v)
if vv != "some text here" {
t.Fatal("Text should have been normalized")
}
}
func TestStringIsBlank(t *testing.T) {
if !StringIsBlank("") {
t.Fatal("Failed to check string is blank")
}
}
func TestStringIsNotBlank(t *testing.T) {
if !StringIsNotBlank("fasdfdas") {
t.Fatal("Failed to check string is not blank")
}
}