1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
pub mod binarypack;
pub mod error;

#[cfg(test)]
mod tests {
    use crate::binarypack;
    #[test]
    fn binarypack_unpack() {
        let a = [1, 2, 3];
        match binarypack::unpack(&a).unwrap() {
            binarypack::Unpacked::Uint8(s) => {
                println!("u8: {}", s);
            }
            _ => {}
        }
    }
}