27 for (
size_t offset{0}; offset <
target.size();) {
34 for (
size_t test{0}; test < 100; ++test) {
35 const size_t write_size{1 + m_rng.randrange(100U)};
36 const std::vector original{m_rng.randbytes<std::byte>(
write_size)};
43 for (
size_t i{0}; i < original.size(); ++i) {
111 fs::path
xor_path{m_args.GetDataDirBase() /
"test_xor.bin"};
113 const std::vector<uint8_t>
test1{1, 2, 3};
114 const std::vector<uint8_t>
test2{4, 5};
134 std::vector<std::byte>
raw(7);
153 std::vector<std::byte>
read2;
169 unsigned char bytes[] = {3, 4, 5, 6};
170 std::vector<unsigned char> vch;
177 BOOST_CHECK((vch == std::vector<unsigned char>{{1, 2}}));
179 BOOST_CHECK((vch == std::vector<unsigned char>{{1, 2}}));
183 BOOST_CHECK((vch == std::vector<unsigned char>{{0, 0, 1, 2}}));
185 BOOST_CHECK((vch == std::vector<unsigned char>{{0, 0, 1, 2}}));
190 BOOST_CHECK((vch == std::vector<unsigned char>{{0, 0, 1, 2, 0}}));
192 BOOST_CHECK((vch == std::vector<unsigned char>{{0, 0, 1, 2, 0}}));
197 BOOST_CHECK((vch == std::vector<unsigned char>{{0, 0, 0, 1, 2}}));
199 BOOST_CHECK((vch == std::vector<unsigned char>{{0, 0, 0, 1, 2}}));
204 BOOST_CHECK((vch == std::vector<unsigned char>{{0, 0, 0, 0, 1, 2}}));
206 BOOST_CHECK((vch == std::vector<unsigned char>{{0, 0, 0, 0, 1, 2}}));
210 BOOST_CHECK((vch == std::vector<unsigned char>{{3, 4, 5, 6}}));
212 BOOST_CHECK((vch == std::vector<unsigned char>{{3, 4, 5, 6}}));
217 BOOST_CHECK((vch == std::vector<unsigned char>{{8, 8, 1, 3, 4, 5, 6, 2}}));
219 BOOST_CHECK((vch == std::vector<unsigned char>{{8, 8, 1, 3, 4, 5, 6, 2}}));