Clarify .exe suffix handling in class normalization
This commit is contained in:
@@ -12,6 +12,7 @@ func TestClassFromImagePath(t *testing.T) {
|
||||
{`C:/forward/slash/Code.exe`, "code"},
|
||||
{`firefox`, "firefox"},
|
||||
{``, ""},
|
||||
{`.exe`, ""}, // degenerate: only the extension
|
||||
}
|
||||
for _, c := range cases {
|
||||
if got := ClassFromImagePath(c.in); got != c.want {
|
||||
|
||||
Reference in New Issue
Block a user