Lines Matching defs:vec
756 std::vector<uint8_t> vec = {'H', 'i', 0x14, '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0'};
757 const auto j = json::from_ubjson(vec);
764 std::vector<uint8_t> vec = {'H', 'i', 0x13, '-', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '1', '2', '3', '4', '5', '6', '7', '8'};
765 const auto j = json::from_ubjson(vec);
772 std::vector<uint8_t> vec = {'H', 'i', 0x16, '3', '.', '1', '4', '1', '5', '9', '2', '6', '5', '3', '5', '8', '9', '7', '9', '3', '2', '3', '8', '4', '6'};
773 const auto j = json::from_ubjson(vec);
803 const auto vec = json::to_ubjson(j);
805 CHECK(vec == expected);
808 CHECK(json::from_ubjson(vec) == j);
1567 std::vector<uint8_t> vec = {'Z', 'Z'};
1570 const auto result = json::from_ubjson(vec, false);
1577 CHECK_THROWS_WITH_AS(_ = json::from_ubjson(vec), "[json.exception.parse_error.110] parse error at byte 2: syntax error while parsing UBJSON value: expected end of input; last byte: 0x5A", json::parse_error&);
2510 std::vector<uint8_t> vec;
2511 json::to_ubjson(j1, vec);
2512 CHECK(vec == packed);