mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
Damaged-preference test: clearer comment on the as-written comparison (#16040)
This commit is contained in:
1 parent
d369052bc6
commit
f22516a680
1 file changed
+1
-1
@@ -747,7 +747,7 @@ fn run_loaded(cases: Vec<Loaded>) {
|
||||
tick(&mut app, &ctx);
|
||||
let (reread, report) = services_on(&files).settings.unwrap();
|
||||
assert!(report.section_errors.is_empty(), "{}: {:?}", case.name, report.section_errors);
|
||||
// As written: the file has no nulls, which the preset libraries hold in memory.
|
||||
// Compared as written: the file has no nulls, while the preset libraries hold some in memory.
|
||||
let written = |p: &prefs::SavedPrefs| serde_json::to_value(p).unwrap();
|
||||
assert_eq!(written(reread.get()), written(&app.session.saved_prefs()), "{}", case.name);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user