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.
12 lines
377 B
Rust
12 lines
377 B
Rust
use lawsynth_core::Identifier;
|
|
use lawsynth_expr::{Expr, ExpressionNode};
|
|
|
|
#[test]
|
|
fn node_view_exposes_symbol_without_cloning_its_expression() {
|
|
let identifier = Identifier::new("alpha").unwrap();
|
|
let expression = Expr::symbol(identifier);
|
|
assert!(
|
|
matches!(ExpressionNode::from(&expression), ExpressionNode::Symbol(id) if id.as_str() == "alpha")
|
|
);
|
|
}
|