diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-11-07 20:15:56 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-11-07 20:15:56 +0100 |
commit | 10a72bb7d695fd36675198fd52b467fc66fcea17 (patch) | |
tree | 6f241461e7c6fc1b2439e855b0d24f99e27a186b /test/wall-atlas.cpp | |
parent | 24c7e1915bf16b4141d0502af040791fed65aa06 (diff) |
a
Diffstat (limited to 'test/wall-atlas.cpp')
-rw-r--r-- | test/wall-atlas.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/test/wall-atlas.cpp b/test/wall-atlas.cpp index 699043a3..92439800 100644 --- a/test/wall-atlas.cpp +++ b/test/wall-atlas.cpp @@ -64,14 +64,16 @@ void test_read_groups(StringView filename) fm_assert(read_direction_metadata(jroot, Direction_::S).is_empty()); const auto dir = read_direction_metadata(jroot, Direction_::W); - - fm_assert(dir.wall.pixel_size == Vector2ui{}); - fm_assert(!dir.wall.default_tint); - - fm_assert(dir.side.pixel_size == Vector2ui{42, 192}); - fm_assert(dir.side.default_tint); - - fm_assert(dir.top.default_tint == group_defaults.default_tint); + fm_assert(dir.wall.pixel_size == Vector2ui{} ); + fm_assert(dir.wall.default_tint == false ); + fm_assert(dir.wall.mirrored == group_defaults.mirrored ); + fm_assert(dir.wall.from_rotation == (uint8_t)-1 ); + fm_assert(dir.side.pixel_size == Vector2ui{42, 192} ); + fm_assert(dir.side.default_tint == true ); + fm_assert(dir.top.default_tint == group_defaults.default_tint ); + fm_assert(dir.overlay.tint_mult == Vector4{0.125f, 0.25f, 0.5f, 1.f } ); + fm_assert(dir.overlay.tint_add == Vector3{1, 2, 3} ); + fm_assert(dir.overlay.mirrored == true ); } } // namespace |