package util_test import ( "testing" "github.com/foxdeveloper/namecheck/util" ) func TestToLower(t *testing.T) { test := "UPPERCASE" want := "uppercase" got := util.ToLower(test) if got != want { t.Errorf("util.ToLower(%s) = %s; want %s", test, got, want) } } func TestCounter(t *testing.T) { test := "传/傳test" want := 7 got := util.Counter(test) if got != want { t.Errorf("util.Counter(%s) = %d; want %d", test, got, want) } }