package understanding import ( "strings" "testing" ) func runeNormalize(s string) string { b := new(strings.Builder) for _, r := range s { b.WriteRune(r) } return b.String() } func TestString(t *testing.T) { x, y := "\xff", "\xfe" if string(x) != string(y) { t.Errorf("strings compare according to runes?") } if runeNormalize(x) == runeNormalize(y) { t.Errorf("runes are something other than utf8.RuneError?") } }