2bc41aeb8602
enhanced_preset_name.rs
//! `enhanced_preset` resolves a name the way `preset` does (trimmed, brackets stripped, any case),
//! so Shapes is off for High Fidelity Photo however its name is written.
use vectorcraft_trace::enhanced_preset;
#[test]
fn enhanced_high_fidelity_photo_ignores_name_decoration() {
let plain = enhanced_preset("High Fidelity Photo").unwrap();
assert!(!plain.shapes);
for name in ["[High Fidelity Photo]", " High Fidelity Photo ", " high fidelity photo "] {
assert_eq!(enhanced_preset(name), Some(plain.clone()), "{name:?}");
}
}
No file is open. Choose one in the tree, or press Ctrl+O (⌘O on a Mac) to find one by name.
Syntax highlighting could not load. The unmodified read-only text remains available above.