diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-11-22 21:38:29 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-11-22 21:38:29 +0100 |
commit | 8ea6924dda8d452bd870302a2c4e96f437ee5443 (patch) | |
tree | cbcbf3724a891013923266542688d278fff49c03 /test | |
parent | 9bde31b07ada8aa5a3a2d30ffa904c38c3c0e09a (diff) |
flush
Diffstat (limited to 'test')
-rw-r--r-- | test/wall-atlas.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/wall-atlas.cpp b/test/wall-atlas.cpp index 188eb760..2c65a0e5 100644 --- a/test/wall-atlas.cpp +++ b/test/wall-atlas.cpp @@ -107,6 +107,11 @@ 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)); + // swapped in atlas.json during reading and writing, rotated in atlas image file + fm_assert_equal(Vector2i{42, 192}, wall_atlas::expected_size(42, Tag::top)); } } // namespace |