summaryrefslogtreecommitdiffhomepage
path: root/test/wall-atlas.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-01-09 02:59:27 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-01-09 02:59:45 +0100
commite72eb0b1d3149288d2a5291722c3ba68bb567a84 (patch)
tree5fb4c8dfb97f8f57d946b770b228ff97ac04d5cf /test/wall-atlas.cpp
parent76559b1d8c7b0f6a29c729d9c82e4c1e15d988f0 (diff)
a
Diffstat (limited to 'test/wall-atlas.cpp')
-rw-r--r--test/wall-atlas.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/wall-atlas.cpp b/test/wall-atlas.cpp
index 9258863c..eec4ecee 100644
--- a/test/wall-atlas.cpp
+++ b/test/wall-atlas.cpp
@@ -65,6 +65,8 @@ void test_read_groups(StringView filename)
fm_assert(dir.side.pixel_size == Vector2ui{42, 192} );
fm_assert(dir.side.default_tint == true );
fm_assert(dir.top.default_tint == true );
+ fm_assert(dir.corner.index == 2);
+ fm_assert(dir.corner.count == 1);
const auto atlas2 = wall_atlas_def::deserialize(path);
fm_assert(atlas2.header == info);
@@ -88,8 +90,10 @@ void test_from_rotation(StringView filename)
fm_assert(D_n.top.is_defined);
fm_assert(D_n.top.from_rotation != null);
fm_assert(D_n.top.from_rotation != null);
+ fm_assert(!D_n.corner.is_defined);
fm_assert(D_w.top.from_rotation == null);
fm_assert(D_w.top.is_defined);
+ fm_assert(D_w.corner.is_defined);
fm_assert(atlas.direction_array[D_n.top.from_rotation].top.count == 12);
}