icfp-model/src/test/java/ru/bosony/tests/TestTrampolines.java
changeset 27 505c25412b16
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/icfp-model/src/test/java/ru/bosony/tests/TestTrampolines.java	Sun Jul 15 21:20:04 2012 +0400
     1.3 @@ -0,0 +1,27 @@
     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 + * 			15.07.2012 20:51:52
    1.18 + *
    1.19 + */
    1.20 +public class TestTrampolines {
    1.21 +
    1.22 +	@Test
    1.23 +	public void test() {
    1.24 +		String map = ExampleMaps.MAP_FROM_TRAMPOLINES_TASK.getMap();
    1.25 +		Mine mine = new Mine(map);
    1.26 +		Game game = new Game(mine);
    1.27 +		assertEquals(game.move("DLLLRDDDLLURRRUUULLU"), GameState.Win);
    1.28 +	}
    1.29 +
    1.30 +}