46
46
#include < nil/marshalling/types/no_value.hpp>
47
47
#include < nil/marshalling/types/variant.hpp>
48
48
49
- #include < nil/marshalling/algorithms/unpack.hpp>
50
- #include < nil/marshalling/algorithms/pack.hpp>
51
49
#include < nil/marshalling/algorithms/repack.hpp>
52
50
53
51
#include < cstdio>
@@ -62,7 +60,7 @@ BOOST_AUTO_TEST_CASE(be_to_be_1) {
62
60
std::vector<std::uint16_t > res = {{0x1234 , 0x5678 }};
63
61
64
62
status_type status;
65
- std::vector<std::uint16_t > out = pack <option::big_endian>(in, status);
63
+ std::vector<std::uint16_t > out = repack <option::big_endian>(in, status);
66
64
67
65
BOOST_CHECK (status == status_type::success);
68
66
BOOST_CHECK (out.size () == res.size ());
@@ -98,7 +96,7 @@ BOOST_AUTO_TEST_CASE(be_to_le_1) {
98
96
x = std::vector<int >(a.begin (), a.end ());
99
97
100
98
status_type status;
101
- std::uint32_t out = pack <option::little_endian>(in, status);
99
+ std::uint32_t out = repack <option::little_endian>(in, status);
102
100
103
101
BOOST_CHECK (status == status_type::success);
104
102
@@ -155,7 +153,7 @@ BOOST_AUTO_TEST_CASE(be_to_le_2) {
155
153
std::uint64_t res = 0xefcdab9078563412 ;
156
154
157
155
status_type status;
158
- std::uint64_t out = pack <option::little_endian>(in, status);
156
+ std::uint64_t out = repack <option::little_endian>(in, status);
159
157
160
158
BOOST_CHECK (status == status_type::success);
161
159
@@ -168,7 +166,7 @@ BOOST_AUTO_TEST_CASE(be_to_le_3) {
168
166
std::vector<std::uint32_t > res = {{0x78563412 , 0xefcdab90 }};
169
167
170
168
status_type status;
171
- std::vector<std::uint32_t > out = repack<option::big_endian , option::little_endian >(in, status);
169
+ std::vector<std::uint32_t > out = repack<option::little_endian , option::big_endian >(in, status);
172
170
173
171
BOOST_CHECK (status == status_type::success);
174
172
BOOST_CHECK (out.size () == res.size ());
@@ -185,7 +183,7 @@ BOOST_AUTO_TEST_CASE(bubb_to_lulb_4) {
185
183
uint32_t res = 0x78563412 ;
186
184
187
185
status_type status;
188
- std::uint32_t out = repack<option::big_endian , option::little_endian >(in, status);
186
+ std::uint32_t out = repack<option::little_endian , option::big_endian >(in, status);
189
187
190
188
BOOST_CHECK (status == status_type::success);
191
189
@@ -239,7 +237,7 @@ BOOST_AUTO_TEST_CASE(lubb_to_bubb_1) {
239
237
std::uint64_t res = 0x34127856ab90efcd ;
240
238
241
239
status_type status;
242
- std::uint64_t out = repack<option::little_endian , option::big_endian >(in, status);
240
+ std::uint64_t out = repack<option::big_endian , option::little_endian >(in, status);
243
241
244
242
BOOST_CHECK (status == status_type::success);
245
243
@@ -272,7 +270,7 @@ BOOST_AUTO_TEST_CASE(lubb_to_lubb_1) {
272
270
std::uint16_t res = 0x7856 ;
273
271
274
272
status_type status;
275
- std::uint16_t out = pack <option::little_endian>(in, status);
273
+ std::uint16_t out = repack <option::little_endian>(in, status);
276
274
277
275
BOOST_CHECK (status == status_type::success);
278
276
0 commit comments