Lines Matching defs:vec
1781 std::vector<uint8_t> vec = {0xf6, 0xf6};
1784 const auto result = json::from_cbor(vec, false);
1786 CHECK(!json::from_cbor(vec, false, false).is_discarded());
1792 CHECK_THROWS_WITH_AS(_ = json::from_cbor(vec), "[json.exception.parse_error.110] parse error at byte 2: syntax error while parsing CBOR value: expected end of input; last byte: 0xF6", json::parse_error&);
1793 CHECK(json::from_cbor(vec, true, false).is_discarded());
2163 std::vector<uint8_t> vec;
2164 json::to_cbor(j1, vec);
2165 CHECK(vec == packed);
2654 const auto vec = json::to_cbor(j_binary);
2655 CHECK(vec == std::vector<std::uint8_t> {0xA1, 0x66, 0x62, 0x69, 0x6E, 0x61, 0x72, 0x79, 0xD8, 0x2A, 0x44, 0xCA, 0xFE, 0xBA, 0xBE});
2659 CHECK_THROWS_WITH_AS(_ = json::from_cbor(vec), "[json.exception.parse_error.112] parse error at byte 9: syntax error while parsing CBOR value: invalid byte: 0xD8", json::parse_error);
2662 json jb = json::from_cbor(vec, true, true, json::cbor_tag_handler_t::ignore);