Improve substrate-median tests

The use of a dedicated test module ensures the API doesn't hide anything which
needs to be public. There's also now explicit tests for when the median is the
popped value.
This commit is contained in:
Luke Parker
2025-11-25 23:39:42 -05:00
parent 8ec0582237
commit e7c759c468
4 changed files with 221 additions and 150 deletions

View File

@@ -1,3 +1,8 @@
# Substrate Median
An efficient implementation of a median algorithm within a Substrate runtime.
For more information, please see the
[documentation](
https://docs.rs/substrate-median/latest/substrate_median/trait.Median.html
).