nardol 0.0.3

Simple framework that provides structure to data sent and received from network.
Documentation
#[cfg(test)]
mod general_tests {

    use nardol::Bytes;

    #[test]
    fn from_arr() {
        let mut expected = Bytes::empty();

        for n in &[1_u8, 2_u8, 3_u8, 4_u8] {
            expected.push(*n);
        }

        let arr = [1_u8, 2_u8, 3_u8, 4_u8];

        let bytes_from_arr = Bytes::from(arr);

        assert_eq!(expected, bytes_from_arr);
    }
}

/// Tests Packet and its methods.
///
/// Some test can conflict with each other if test are run in parallel which can cause a failure of test.
#[cfg(test)]
mod packet_tests;

#[cfg(test)]
mod message_tests {}