lawsynth/crates/lawsynth-dynamics/tests/continuous_integration.rs
caelum0x 8af85c6e28 style: format workspace to rustfmt.toml (use_small_heuristics = Max)
Bring the whole workspace into compliance with the repo's rustfmt config
(edition 2024, max_width 100, use_small_heuristics = "Max"), which had drifted
across many crates. Pure formatting — no logic changes; `cargo fmt --check` is
now clean and `cargo build --workspace` is green.
2026-08-18 16:59:40 +03:00

15 lines
473 B
Rust

use lawsynth_core::Identifier;
use lawsynth_data::{Dataset, NumericColumn, TimeAxis};
use lawsynth_dynamics::ContinuousProblem;
#[test]
fn continuous_problem_keeps_declared_state_schema() {
let x = Identifier::new("x").unwrap();
let data = Dataset::new(
TimeAxis::new(vec![0.0, 1.0]).unwrap(),
[NumericColumn::new(x.clone(), vec![1.0, 2.0])],
)
.unwrap();
assert_eq!(ContinuousProblem::new(data, [x.clone()]).unwrap().state(), &[x]);
}