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.
16 lines
454 B
Rust
16 lines
454 B
Rust
use lawsynth_core::Identifier;
|
|
|
|
#[test]
|
|
fn identifiers_remain_orderable_and_preserve_portable_text() {
|
|
let mut identifiers = [
|
|
Identifier::new("velocity").unwrap(),
|
|
Identifier::new("acceleration_1").unwrap(),
|
|
Identifier::new("position").unwrap(),
|
|
];
|
|
identifiers.sort();
|
|
assert_eq!(
|
|
identifiers.iter().map(Identifier::as_str).collect::<Vec<_>>(),
|
|
["acceleration_1", "position", "velocity"]
|
|
);
|
|
}
|