mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-13 21:05:30 +02:00
21 lines
417 B
Go
21 lines
417 B
Go
package icons
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestFileIcons(t *testing.T) {
|
|
t.Run("TestFileIcons", func(t *testing.T) {
|
|
for name, icon := range nameIconMap {
|
|
if len([]rune(icon.Icon)) != 1 {
|
|
t.Errorf("nameIconMap[\"%s\"] is not a single rune", name)
|
|
}
|
|
}
|
|
|
|
for ext, icon := range extIconMap {
|
|
if len([]rune(icon.Icon)) != 1 {
|
|
t.Errorf("extIconMap[\"%s\"] is not a single rune", ext)
|
|
}
|
|
}
|
|
})
|
|
}
|