mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-02 22:20:50 -06:00
Found while testing crates/trace/src/params.rs:248-251 (enhanced_preset) Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
14 lines
555 B
Rust
14 lines
555 B
Rust
//! `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:?}");
|
|
}
|
|
}
|