summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-11-05 21:44:30 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-11-05 21:44:30 +0100
commit7b4352979f79fbd214fcb9f808b06e406dd501be (patch)
tree5e238df7786f528a872e1075f06478cc05c9cef9 /test
parent9cd48b6cc39440f0776e10a5c8c1a6c42aca337b (diff)
a
Diffstat (limited to 'test')
-rw-r--r--test/wall-atlas.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/wall-atlas.cpp b/test/wall-atlas.cpp
index 9fbd4579..778b793a 100644
--- a/test/wall-atlas.cpp
+++ b/test/wall-atlas.cpp
@@ -13,7 +13,7 @@ using nlohmann::json;
namespace {
-void test_atlas_header(StringView path, StringView filename)
+Pair<json, Info> test_read_info(StringView path, StringView filename)
{
auto jroot = json_helper::from_json_(Path::join(path, filename));
auto info = read_info_header(jroot);
@@ -33,6 +33,8 @@ void test_atlas_header(StringView path, StringView filename)
else
fm_assert(false);
#endif
+
+ return {std::move(jroot), std::move(info)};
}
} // namespace
@@ -47,5 +49,5 @@ void floormat::test_app::test_wall_atlas()
const auto path = Path::join(loader.TEMP_PATH, "test/json"_s);
fm_assert(Path::isDirectory(path));
- (void)test_atlas_header(path, "wall-atlas-header1.json"_s);
+ (void)test_read_info(path, "wall-atlas-header1.json"_s);
}