1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/icfp-model/src/test/java/ru/bosony/tests/TestHighOrderRocks.java Mon Jul 16 01:46:54 2012 +0400
1.3 @@ -0,0 +1,28 @@
1.4 +package ru.bosony.tests;
1.5 +
1.6 +import static org.junit.Assert.assertEquals;
1.7 +
1.8 +import org.junit.Test;
1.9 +
1.10 +import ru.bosony.model.game.Game;
1.11 +import ru.bosony.model.game.GameState;
1.12 +import ru.bosony.model.maps.ExampleMaps;
1.13 +import ru.bosony.model.mine.Mine;
1.14 +
1.15 +/**
1.16 + * @author indvdum (gotoindvdum[at]gmail[dot]com) <br>
1.17 + * 16.07.2012 1:43:29
1.18 + *
1.19 + */
1.20 +public class TestHighOrderRocks {
1.21 +
1.22 + @Test
1.23 + public void test() {
1.24 + String map = ExampleMaps.HOROCK_2.getMap();
1.25 + Mine mine = new Mine(map);
1.26 + Game game = new Game(mine);
1.27 + assertEquals(game.move("RRRRRRRRRRRRLLLLLLLLLLUUURRRRRRRRLLLLLLDULLLLLUUULRLLLLRRLLRLULLLLLLLLLLDDDDDD"),
1.28 + GameState.Win);
1.29 + }
1.30 +
1.31 +}