X-Git-Url: https://git.draconx.ca/gitweb/rrace.git/blobdiff_plain/8d65a2da164b109c520d21afd051e4347e194182..b39d19918b63b80d1f3b068d158fe43415b9d1b6:/tests/game.at diff --git a/tests/game.at b/tests/game.at index bfd9819..b607cf6 100644 --- a/tests/game.at +++ b/tests/game.at @@ -13,6 +13,40 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +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(