mirror of
https://github.com/storytold/soundcraft.git
synced 2026-11-01 22:46:49 -06:00
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>
12 lines
444 B
Rust
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));
|
|
}
|