Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
poor-circle committed Aug 1, 2023
1 parent f07534f commit 36ba494
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/struct_pack/tests/test_varint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -664,8 +664,7 @@ struct nested_object2 {

TEST_CASE("test nested") {
{
VarRect<var_int32_t> rect{
.x0 = INT32_MAX, .y0 = INT32_MIN, .x1 = 123, .y1 = 0};
VarRect<var_int32_t> rect{ INT32_MAX, INT32_MIN, 123, 0};
auto buf = serialize(rect);
auto rect2 = deserialize<VarRect<var_int32_t>>(buf);
CHECK(rect == rect2);
Expand All @@ -676,8 +675,7 @@ TEST_CASE("test nested") {
CHECK(obj2 == obj);
}
{
VarRect<var_int64_t> rect{
.x0 = INT64_MAX, .y0 = INT64_MIN, .x1 = 123, .y1 = 0};
VarRect<var_int64_t> rect{INT64_MAX, INT64_MIN, 123, 0};
auto buf = serialize(rect);
auto rect2 = deserialize<VarRect<var_int64_t>>(buf);
CHECK(rect == rect2);
Expand All @@ -688,8 +686,7 @@ TEST_CASE("test nested") {
CHECK(obj2 == obj);
}
{
VarRect<var_uint32_t> rect{
.x0 = UINT32_MAX, .y0 = 21321343, .x1 = 123, .y1 = 0};
VarRect<var_uint32_t> rect{ UINT32_MAX, 21321343,123, 0};
auto buf = serialize(rect);
auto rect2 = deserialize<VarRect<var_uint32_t>>(buf);
CHECK(rect == rect2);
Expand All @@ -700,8 +697,7 @@ TEST_CASE("test nested") {
CHECK(obj2 == obj);
}
{
VarRect<var_uint64_t> rect{
.x0 = UINT64_MAX, .y0 = 1233143, .x1 = 123, .y1 = 0};
VarRect<var_uint64_t> rect{ UINT64_MAX, 1233143, 123, 0};
auto buf = serialize(rect);
auto rect2 = deserialize<VarRect<var_uint64_t>>(buf);
CHECK(rect == rect2);
Expand Down

0 comments on commit 36ba494

Please sign in to comment.