diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-09-11 04:18:11 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-09-11 14:20:10 +0200 |
commit | be8ab17542bea5d783166f320cf3ed02b7b88b20 (patch) | |
tree | 5bf6fae735faa69b84a87384cb48336e9cfa9fe6 /test/serializer.cpp | |
parent | 1af31374db91b0fd6091b27d4c199edaee989612 (diff) |
wip
Diffstat (limited to 'test/serializer.cpp')
-rw-r--r-- | test/serializer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/serializer.cpp b/test/serializer.cpp index 9387f827..dd2d090d 100644 --- a/test/serializer.cpp +++ b/test/serializer.cpp @@ -13,9 +13,7 @@ namespace floormat { namespace Path = Corrade::Utility::Path; -namespace { - -chunk& make_test_chunk(world& w, chunk_coords_ ch) +chunk& test_app::make_test_chunk(world& w, chunk_coords_ ch) { chunk& c = w[ch]; c.mark_modified(); @@ -47,6 +45,8 @@ chunk& make_test_chunk(world& w, chunk_coords_ ch) return c; } +namespace { + void assert_chunks_equal(const chunk& a, const chunk& b) { fm_assert(a.objects().size() == b.objects().size()); @@ -103,7 +103,7 @@ void test_serializer(StringView input, StringView tmp) { coord = {1, 1, 0}; w = world(); - make_test_chunk(w, coord); + test_app::make_test_chunk(w, coord); } w.serialize(tmp); auto w2 = world::deserialize(tmp); |