1.1 --- a/icfp-model/src/test/java/ru/bosony/tests/TestMovements.java Sun Jul 15 00:16:20 2012 +0400
1.2 +++ b/icfp-model/src/test/java/ru/bosony/tests/TestMovements.java Sun Jul 15 00:48:47 2012 +0400
1.3 @@ -1,39 +1,27 @@
1.4 package ru.bosony.tests;
1.5
1.6 -import static org.junit.Assert.*;
1.7 +import static org.junit.Assert.assertEquals;
1.8 +import static org.junit.Assert.assertFalse;
1.9 +import static org.junit.Assert.assertTrue;
1.10
1.11 import java.util.Set;
1.12
1.13 import org.junit.Test;
1.14
1.15 +import ru.bosony.model.maps.ExampleMaps;
1.16 import ru.bosony.model.mine.Mine;
1.17 import ru.bosony.model.moving.Movement;
1.18
1.19 /**
1.20 - * @author indvdum (gotoindvdum[at]gmail[dot]com) <br>
1.21 - * 14.07.2012 2:29:05
1.22 - *
1.23 + * @author indvdum (gotoindvdum[at]gmail[dot]com) <br>
1.24 + * 14.07.2012 2:29:05
1.25 + *
1.26 */
1.27 public class TestMovements {
1.28
1.29 @Test
1.30 public void test() {
1.31 - /* Map 01 (6x6)
1.32 - *
1.33 - ######
1.34 - #. *R#
1.35 - # \.#
1.36 - #\ * #
1.37 - L .\#
1.38 - ######
1.39 - */
1.40 - String map =
1.41 - "######\n" +
1.42 - "#. *R#\n" +
1.43 - "# \\.#\n" +
1.44 - "#\\ * #\n" +
1.45 - "L .\\#\n" +
1.46 - "######";
1.47 + String map = ExampleMaps.MAP_01.getMap();
1.48 Mine mine = new Mine(map);
1.49 assertEquals(mine.getSizeX(), 6);
1.50 assertEquals(mine.getSizeY(), 6);