diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/json.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/test/json.cpp b/test/json.cpp index 97bece30..0ecd9f54 100644 --- a/test/json.cpp +++ b/test/json.cpp @@ -32,29 +32,28 @@ static chunk make_test_chunk() bool app::test_json() // NOLINT(readability-convert-member-functions-to-static) { - bool ret = true; const std::filesystem::path output_dir = "../test/."; { auto atlas = loader.tile_atlas("share/game/images/metal1.tga", {2, 2}); - ret &= json_helper::to_json(atlas, output_dir/"atlas.json"); + json_helper::to_json(atlas, output_dir/"atlas.json"); } { Magnum::Math::Vector<2, int> v2i_1{1, 2}; Vector2i v2i_2{2, 3}; - ret &= json_helper::to_json(v2i_1, output_dir/"vec2i_1.json"); - ret &= json_helper::to_json(v2i_2, output_dir/"vec2i_2.json"); + json_helper::to_json(v2i_1, output_dir/"vec2i_1.json"); + json_helper::to_json(v2i_2, output_dir/"vec2i_2.json"); } { volatile float zero = 0; Magnum::Math::Vector3 vec{0.f/zero, -1.f/zero, 123.f}; - ret &= json_helper::to_json(vec, output_dir/"vec3_inf.json"); + json_helper::to_json(vec, output_dir/"vec3_inf.json"); } { const auto chunk = make_test_chunk(); - ret &= json_helper::to_json(chunk, output_dir/"zzz_chunk-1.json"); + json_helper::to_json(chunk, output_dir/"zzz_chunk-1.json"); } - return ret; + return true; } } // namespace floormat |