qubit-codec-binary 0.1.0

Buffer-oriented binary codecs for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use qubit_codec_binary::Leb128DecodeErrorKind;

#[test]
fn test_display_formats_decode_error_kinds() {
    assert_eq!(
        "incomplete LEB128 integer",
        Leb128DecodeErrorKind::Incomplete.to_string()
    );
    assert_eq!(
        "malformed LEB128 integer",
        Leb128DecodeErrorKind::Malformed.to_string()
    );
    assert_eq!(
        "non-canonical LEB128 integer",
        Leb128DecodeErrorKind::NonCanonical.to_string()
    );
}