]> git.draconx.ca Git - rrace.git/blobdiff - tests/game.at
Fix bitmap generation in goal overlay feature.
[rrace.git] / tests / game.at
index 4d367afd9a1e3f4ced0cb0f650fb52a97681158b..610b066817f0b0170cef98f7f8a21c9e6f9ad2a3 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright © 2022 Nick Bowler
+# Copyright © 2022-2023 Nick Bowler
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -629,3 +629,26 @@ AT_DATA([expout],
 AT_CHECK([checkgoal <boards.dat >result.dat && cat result.dat], [0], [expout])
 
 AT_CLEANUP
+
+AT_SETUP([game_overlay_goal])
+
+AT_DATA([boards.dat], [dnl
+0 0 0  0  0  0
+0 0 0 -1  0  0
+0 0 0  0 -1  0
+0 0 0  0  0 -1
+1ffffff 1ffffff 1ffffff 0 0 0
+])
+
+AT_DATA([expout], [dnl
+0000000 0000000 0000000
+00739c0 0000000 0000000
+0000000 00739c0 0000000
+0000000 0000000 00739c0
+1f8c63f 1f8c63f 1f8c63f
+])
+
+AT_CHECK([overlaygoal <boards.dat >result.dat && cat result.dat],
+  [0], [expout])
+
+AT_CLEANUP