mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-16 21:45:03 +02:00
Also run gofmt on kittens subdir in CI
This commit is contained in:
@@ -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:])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 != "" {
|
||||
|
||||
Reference in New Issue
Block a user