Skip to content

Commit 1c10038

Browse files
committed
Fix exact display match test for pre-normalized query contract
1 parent e5a7114 commit 1c10038

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/gui/mod.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5689,13 +5689,16 @@ mod tests {
56895689
}
56905690

56915691
#[test]
5692-
fn exact_display_match_is_case_insensitive_substring() {
5692+
fn exact_display_match_uses_pre_normalized_query_substring() {
56935693
let cached = CachedSearchEntry {
56945694
label_lc: "testingeve123".into(),
56955695
desc_lc: String::new(),
56965696
action_lc: String::new(),
56975697
};
5698-
assert!(LauncherApp::matches_exact_display_text(&cached, "Eve"));
5698+
assert!(LauncherApp::matches_exact_display_text(
5699+
&cached,
5700+
&"Eve".to_lowercase()
5701+
));
56995702
assert!(LauncherApp::matches_exact_display_text(&cached, "eve"));
57005703
assert!(!LauncherApp::matches_exact_display_text(&cached, "night"));
57015704
}

0 commit comments

Comments
 (0)