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.
9 lines
358 B
Rust
9 lines
358 B
Rust
use lawsynth_expr::{BinaryOperator, Expr, ExpressionConfig};
|
|
|
|
#[test]
|
|
fn structural_limits_count_ast_nodes() {
|
|
let expression = Expr::binary(BinaryOperator::Add, Expr::constant(1.0), Expr::constant(2.0));
|
|
assert!(ExpressionConfig { maximum_nodes: 3 }.accepts(&expression));
|
|
assert!(!ExpressionConfig { maximum_nodes: 2 }.accepts(&expression));
|
|
}
|