diff options
Diffstat (limited to 'test/wall-atlas.cpp')
-rw-r--r-- | test/wall-atlas.cpp | 4 |
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); } |