From b7dd8c7125215a4934db9fde81a69b414c20d92b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Tue, 25 Aug 2026 10:37:59 -0400 Subject: [PATCH] Menu search test follows the localized labels The exact-label ranking case now queries in Chinese, and a new case pins English reachability through the leaf id. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01QKxGW1raAWaqeU8WdHsMsp --- test/shell.d/menu-test.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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