Home
last modified time | relevance | path

Searched refs:serialize_and_compare (Results 1 – 1 of 1) sorted by relevance

/external/rust/crates/serde_cbor/tests/
Dser.rs6 serialize_and_compare("foobar", b"ffoobar"); in test_str()
11 serialize_and_compare(&[1, 2, 3], b"\x83\x01\x02\x03"); in test_list()
16 serialize_and_compare(12.3f64, b"\xfb@(\x99\x99\x99\x99\x99\x9a"); in test_float()
22 serialize_and_compare(24, b"\x18\x18"); in test_integer()
24 serialize_and_compare(-5, b"\x24"); in test_integer()
26 serialize_and_compare(-300, b"\x39\x01\x2b"); in test_integer()
28 serialize_and_compare(-23567997, b"\x3a\x01\x67\x9e\x7c"); in test_integer()
30 serialize_and_compare(::core::u64::MAX, b"\x1b\xff\xff\xff\xff\xff\xff\xff\xff"); in test_integer()
33 fn serialize_and_compare<T: Serialize>(value: T, expected: &[u8]) { in serialize_and_compare() function