]> git.draconx.ca Git - rrace.git/blobdiff - tests/game.at
Reduce the amount of redundant drawing in the game area.
[rrace.git] / tests / game.at
index bfd98190aec8e465cd85a8cea9bd236425babe4b..b607cf67e39d695de2b0d7ca5e39fc4c4187f5ce 100644 (file)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <https://www.gnu.org/licenses/>.
 
+AT_SETUP([board bitmap functions])
+
+AT_CHECK([boardbit], [0],
+[[left(0)     left(1)     left(2)     left(3)     left(4)
+ @....       @@...       @@@..       @@@@.       @@@@@
+ @....       @@...       @@@..       @@@@.       @@@@@
+ @....       @@...       @@@..       @@@@.       @@@@@
+ @....       @@...       @@@..       @@@@.       @@@@@
+ @....       @@...       @@@..       @@@@.       @@@@@
+
+right(0)    right(1)    right(2)    right(3)    right(4)
+ @@@@@       .@@@@       ..@@@       ...@@       ....@
+ @@@@@       .@@@@       ..@@@       ...@@       ....@
+ @@@@@       .@@@@       ..@@@       ...@@       ....@
+ @@@@@       .@@@@       ..@@@       ...@@       ....@
+ @@@@@       .@@@@       ..@@@       ...@@       ....@
+
+above(0)    above(1)    above(2)    above(3)    above(4)
+ @@@@@       @@@@@       @@@@@       @@@@@       @@@@@
+ .....       @@@@@       @@@@@       @@@@@       @@@@@
+ .....       .....       @@@@@       @@@@@       @@@@@
+ .....       .....       .....       @@@@@       @@@@@
+ .....       .....       .....       .....       @@@@@
+
+below(0)    below(1)    below(2)    below(3)    below(4)
+ @@@@@       .....       .....       .....       .....
+ @@@@@       @@@@@       .....       .....       .....
+ @@@@@       @@@@@       @@@@@       .....       .....
+ @@@@@       @@@@@       @@@@@       @@@@@       .....
+ @@@@@       @@@@@       @@@@@       @@@@@       @@@@@
+]])
+
+AT_CLEANUP
+
 AT_SETUP([game_do_move zigzag])
 
 AT_CHECK([boardmove m4_do(