Macro encode_decode_test

Source
macro_rules! encode_decode_test {
    ($init:expr, $test:ident, $value:expr) => { ... };
}
Expand description

Create test that encodes/decodes specified value and checks that result equals original value. Type of this value should implement ToBytes, FromBytes, Clone, Eq traits.