Also run gofmt on kittens subdir in CI

This commit is contained in:
Kovid Goyal
2025-03-23 20:26:10 +05:30
parent c73f5ab8a0
commit f02245af79
3 changed files with 4 additions and 4 deletions

View File

@@ -49,7 +49,7 @@ func IteratorOverGraphemes(text string) iter.Seq[string] {
}
}
if start_pos < len(text) {
yield(text[start_pos:len(text)])
yield(text[start_pos:])
}
}
}

View File

@@ -21,8 +21,8 @@ type GraphemeBreakTest struct {
func TestSplitIntoGraphemes(t *testing.T) {
var m = map[string][]string{
" \u0308 ": []string{" \u0308", " "},
"abc": []string{"a", "b", "c"},
" \u0308 ": {" \u0308", " "},
"abc": {"a", "b", "c"},
}
for text, expected := range m {
if diff := cmp.Diff(expected, SplitIntoGraphemes(text)); diff != "" {