testing-conventions 0.0.100

Enforce testing conventions in libraries (Python, TypeScript, and Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
pub fn build(values: &[u8]) -> Vec<u8> {
    fn inner(value: u8) -> u8 {
        let doubled = value * 2;
        doubled
    }

    let mut mapped: Vec<u8> = values.iter().copied().map(inner).collect();
    mapped.sort_unstable();
    mapped
}