From 34c451c6b64ba1c11efa9a390c16e2097a25279a Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 22 Nov 2023 02:20:53 +0100 Subject: test/wall-atlas: prevent the typo from reoccuring --- test/wall-atlas.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/wall-atlas.cpp b/test/wall-atlas.cpp index a2ac3043..84b79094 100644 --- a/test/wall-atlas.cpp +++ b/test/wall-atlas.cpp @@ -128,7 +128,11 @@ struct wall_atlas_ fm_assert(!atlas.frames.isEmpty()); fm_assert(atlas.frames[0].offset != frame_defaults.offset); - fm_assert(atlas.directions[(size_t)Direction_::W].side.pixel_size != group_defaults.pixel_size); + const auto& dir = atlas.directions[(size_t)Direction_::W]; + fm_assert(dir.side.pixel_size != group_defaults.pixel_size); + fm_assert(dir.side.from_rotation == group_defaults.from_rotation); + fm_assert(dir.corner_L.from_rotation != group_defaults.from_rotation); + fm_assert(dir.corner_L.from_rotation == (uint8_t)Direction_::N); } return atlas; -- cgit v1.2.3