From cb9d23dd521ccffa634402e0eda795320ff2dd89 Mon Sep 17 00:00:00 2001 From: moppeeer Date: Thu, 22 Oct 2026 00:51:01 +0200 Subject: [PATCH] Preferences test: the recent items count is 20 The test checked only that the count was whole, so another default would pass. It asserts 20, InDesign's default. Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/dialogs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ui-egui/src/dialogs.rs b/crates/ui-egui/src/dialogs.rs index bed4cdf04..a0ce16e47 100644 --- a/crates/ui-egui/src/dialogs.rs +++ b/crates/ui-egui/src/dialogs.rs @@ -7435,7 +7435,7 @@ mod tests { let labels = dialog_frame(&mut app, &ctx, screen, vec![]); visible_label(&labels, screen, "Number of Recent Items to Display:"); let count = app.ui.dialog.as_ref().unwrap().n("recentFilesMax").unwrap(); - assert_eq!(count.fract(), 0.0); + assert_eq!(count, 20.0, "InDesign's default"); visible_label(&labels, screen, &format!("{count}")); assert!(!labels.iter().any(|(t, _, _)| t.trim() == format!("{count:.1}")), "no decimal shown"); }