summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-11-07 19:42:01 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-11-07 19:43:32 +0100
commit24c7e1915bf16b4141d0502af040791fed65aa06 (patch)
tree4f4488a388d4fb2951ee702aed1189819232a6cc /test
parent039677a6b78f74ef019ac37a5e789efad6093743 (diff)
a
Diffstat (limited to 'test')
-rw-r--r--test/json/wall-atlas-02_groups.json13
-rw-r--r--test/wall-atlas.cpp3
2 files changed, 12 insertions, 4 deletions
diff --git a/test/json/wall-atlas-02_groups.json b/test/json/wall-atlas-02_groups.json
index 5bfafe94..1a6ea806 100644
--- a/test/json/wall-atlas-02_groups.json
+++ b/test/json/wall-atlas-02_groups.json
@@ -2,7 +2,8 @@
"name": "foo",
"depth": 42,
"frames": [],
- "n": {},
+ "n": {
+ },
"w": {
"wall": {
"default-tint": false
@@ -13,6 +14,16 @@
},
"top": {
"pixel-size": "42 x 192"
+ },
+ "overlay": {
+ "pixel-size": "42 x 192",
+ "tint-mult": [ 0.1, 0.2, 0.3, 0.4 ],
+ "tint-add": [ 1, 2, 3 ],
+ "default-tint": false,
+ "mirrored": true
+ },
+ "corner-L": {
+ "overlay": { "from-rotation": "n" }
}
}
}
diff --git a/test/wall-atlas.cpp b/test/wall-atlas.cpp
index 9d20d50a..699043a3 100644
--- a/test/wall-atlas.cpp
+++ b/test/wall-atlas.cpp
@@ -67,14 +67,11 @@ void test_read_groups(StringView filename)
fm_assert(dir.wall.pixel_size == Vector2ui{});
fm_assert(!dir.wall.default_tint);
- fm_assert(dir.wall._default_tint_specified);
fm_assert(dir.side.pixel_size == Vector2ui{42, 192});
fm_assert(dir.side.default_tint);
- fm_assert(dir.side._default_tint_specified);
fm_assert(dir.top.default_tint == group_defaults.default_tint);
- fm_assert(!dir.top._default_tint_specified);
}
} // namespace