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

16 lines
584 B
Rust

use lawsynth_core::Identifier;
use lawsynth_expr::Expr;
use lawsynth_world::{ContinuousLaw, Variable, VariableRole, World, WorldConfig};
#[test]
fn world_configuration_controls_construction_time_symbol_validation() {
let x = Identifier::new("x").unwrap();
let deferred = World::new_with_config(
[Variable::new(x.clone(), VariableRole::State)],
[],
[ContinuousLaw::new(x, Expr::symbol(Identifier::new("future_input").unwrap()))],
WorldConfig { validate_expression_symbols: false, validate_units: true },
);
assert!(deferred.is_ok());
}