Files
soundcraft/crates/engine/tests/it/min_secs_with_timecode_counter.rs
T
NetterSilverandClaude Haiku 5.5 6d86a52310 Reject out-of-range timecode fields so Min:Secs strings fall through
Found while testing crates/time/src/timecode.rs:189-211 (Timecode::parse), reached via crates/engine/src/cmd/mod.rs:275-287 (position_param_raw)

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 16:57:29 +02:00

12 lines
444 B
Rust

use serde_json::json;
use soundcraft_engine::Engine;
#[test]
fn min_secs_string_is_not_misread_as_timecode_when_the_counter_is_timecode() {
let mut e = Engine::default();
e.execute("view.main_counter", &json!({"format": "timecode"})).unwrap();
e.execute("edit.select", &json!({"start": "0:12.500", "end": "0:20.000"})).unwrap();
let sel = e.session().edit.selection;
assert_eq!((sel.start, sel.end), (600_000, 960_000));
}