diff --git a/test/shell.d/menu-test.sh b/test/shell.d/menu-test.sh index b3394678..9a5874cc 100644 --- a/test/shell.d/menu-test.sh +++ b/test/shell.d/menu-test.sh @@ -152,9 +152,13 @@ assert( 'menu ranks an app matching the query as a whole word above exact-labeled menu entries' ) assert( - rankScore('style.font', 'font') < rankScore('apps.fontforge', 'font'), + rankScore('style.font', '字体') < rankScore('apps.fontforge', '字体'), 'menu keeps a better-matching menu entry above a weaker app match' ) +assert( + rankScore('style.font', 'font') < rankScore('style.background', 'font'), + 'menu still reaches localized entries through their English leaf id' +) // Routing: htop ships `Keywords=system;...`, which app rows carry as aliases. // An installed app must never capture a menu route (SUPER+ESCAPE opens the