chore: apply rustfmt to binding/core sources and sync Cargo.lock

Normalises whitespace in sources committed earlier in this branch
before rustfmt was run over them (Node/WASM bindings, and three core
indicator test modules), and records the wasm-bindgen-test dependency
tree added in B6 into Cargo.lock. No functional change; cargo fmt --all
--check is now clean.
This commit is contained in:
kingchenc
2026-05-22 04:14:18 +02:00
parent 41d52ec5be
commit 59c435fbd5
6 changed files with 127 additions and 30 deletions
@@ -251,6 +251,10 @@ mod tests {
assert_eq!(bb.update(f64::INFINITY).unwrap(), last);
// The window still holds 1..=5, so a real input slides it to 2..=6.
let after = bb.update(6.0).unwrap();
assert_relative_eq!(after.middle, (2.0 + 3.0 + 4.0 + 5.0 + 6.0) / 5.0, epsilon = 1e-12);
assert_relative_eq!(
after.middle,
(2.0 + 3.0 + 4.0 + 5.0 + 6.0) / 5.0,
epsilon = 1e-12
);
}
}