summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-11-23 21:58:32 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-11-23 21:58:32 +0100
commit98a63d0474b79e4e3197fd0c8c34bd8376408bf6 (patch)
treeaf865bbb33b6381026d88a457ea09e53d6818580 /test
parent37da838ff65b8bd70c80aede9a22b0226eb0f6de (diff)
wip
Diffstat (limited to 'test')
-rw-r--r--test/wall-atlas.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/wall-atlas.cpp b/test/wall-atlas.cpp
index 5f0a1a2c..df17eb14 100644
--- a/test/wall-atlas.cpp
+++ b/test/wall-atlas.cpp
@@ -91,7 +91,7 @@ void test_read_groups(StringView filename)
constexpr Frame frame_defaults;
constexpr Group group_defaults;
- fm_assert(!atlas.frames.isEmpty());
+ fm_assert(!atlas.frames.empty());
fm_assert(atlas.frames[0].offset != frame_defaults.offset);
auto dir_index = atlas.direction_map[(size_t)Direction_::W];
fm_assert(dir_index);
@@ -106,12 +106,12 @@ void test_read_groups(StringView filename)
void test_expected_size()
{
- fm_assert_equal(Vector2i{64, 192}, wall_atlas::expected_size(42, Tag::wall));
- fm_assert_equal(Vector2i{42, 192}, wall_atlas::expected_size(42, Tag::side));
- fm_assert_equal(Vector2i{32, 192}, wall_atlas::expected_size(42, Tag::corner_L));
- fm_assert_equal(Vector2i{32, 192}, wall_atlas::expected_size(42, Tag::corner_R));
+ fm_assert_equal(Vector2i{64, 192}, wall_atlas::expected_size(42, Group_::wall));
+ fm_assert_equal(Vector2i{42, 192}, wall_atlas::expected_size(42, Group_::side));
+ fm_assert_equal(Vector2i{32, 192}, wall_atlas::expected_size(42, Group_::corner_L));
+ fm_assert_equal(Vector2i{32, 192}, wall_atlas::expected_size(42, Group_::corner_R));
// swapped in atlas.json during reading and writing, rotated counter-clockwise in atlas image file
- fm_assert_equal(Vector2i{42, 192}, wall_atlas::expected_size(42, Tag::top));
+ fm_assert_equal(Vector2i{42, 192}, wall_atlas::expected_size(42, Group_::top));
}
} // namespace