mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-15 23:05:39 +00:00
test(ui): satisfy clippy manual_contains
This commit is contained in:
@@ -144,7 +144,7 @@ fn the_paragraph_menu_sets_each_of_the_four_composers() {
|
||||
let texts = items(&mut app);
|
||||
for (v, label) in labels {
|
||||
let row = if v == value { format!("✓ {label}") } else { format!(" {label}") };
|
||||
assert!(texts.iter().any(|t| *t == row), "{value}: {row:?} in {texts:?}");
|
||||
assert!(texts.contains(&row), "{value}: {row:?} in {texts:?}");
|
||||
}
|
||||
}
|
||||
// Choosing a row sets its composer: the row is a `text.setFormat {composer}` with the row's id.
|
||||
|
||||
Reference in New Issue
Block a user