sensor statistics: add test
sensor statistics: add test: a task in smol-software-harbor (Harbor dataset). Add tests to tests/stats.rs for min max : an empty slice gives None , a single sample gives Some((x, x)) , and the result is right when the minimum is the last sample and the maximum the first one (e.g. 9.0, 4.0, -2.5 -…
The task
Add tests to `tests/stats.rs` for `min_max`: an empty slice gives `None`, a single sample gives `Some((x, x))`, and the result is right when the minimum is the *last* sample and the maximum the *first* one (e.g. `[9.0, 4.0, -2.5]` -> `Some((-2.5, 9.0))`). Do not change `src/lib.rs` or remove the existing tests. Run…
Part of efederici/smol-software-harbor.