diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-12 00:45:45 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-12 00:59:07 +0100 |
| commit | 692edd513bce851a988b0f04209adc480e48fe1f (patch) | |
| tree | 5dac466dd3e8da8a7f943d1bc4df0848a1bea8b5 /test | |
| parent | 1a84f009b39c070a8d4f4931e2376936190a161e (diff) | |
cc
Diffstat (limited to 'test')
| -rw-r--r-- | test/serializer.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/serializer.cpp b/test/serializer.cpp index 518962e0..c69399d5 100644 --- a/test/serializer.cpp +++ b/test/serializer.cpp @@ -66,7 +66,7 @@ void assert_chunks_equal(const chunk& a, const chunk& b) case object_type::critter: { const auto& e1 = static_cast<const critter&>(ae); const auto& e2 = static_cast<const critter&>(be); - const auto p1 =critter_proto(e1), p2 =critter_proto(e2); + const auto p1 = critter_proto(e1), p2 = critter_proto(e2); fm_assert(p1 == p2); break; } @@ -102,11 +102,13 @@ void test_serializer(StringView input, StringView tmp) { coord = {1, 1, 0}; w = world(); - test_app::make_test_chunk(w, coord); + auto& c = test_app::make_test_chunk(w, coord); + fm_assert(!c.empty(true)); } w.serialize(tmp); auto w2 = world::deserialize(tmp); auto& c2 = w2[coord]; + fm_assert(!c2.empty(true)); assert_chunks_equal(w[coord], c2); } |
