diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-11-22 02:20:53 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-11-22 02:26:37 +0100 |
commit | 34c451c6b64ba1c11efa9a390c16e2097a25279a (patch) | |
tree | 61ae9c78218b95553f16576a966908978849095a /test | |
parent | 68f39690a6c0d1f65206dd007504ce55420ee609 (diff) |
test/wall-atlas: prevent the typo from reoccuring
Diffstat (limited to 'test')
-rw-r--r-- | test/wall-atlas.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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; |