Simulator/test/model/map/MapTest.java
/**
	 * Tests the automatic resizing of the map.
	 */
Tests the automatic resizing of the map.
Tests the automatic resizing of the map .
@Test
	public void testMapResizing() {
		Map m = new Map();
		Wall w = new Wall(10, 10, 0.1, 0.1);
		m.add(w);
		Assert.assertTrue(m.getHeight() >= 10.1);
		Assert.assertTrue(m.getWidth() >= 10.1);
		m.remove(w);
		Assert.assertEquals(m.getHeight(), 1, 0.001);
		Assert.assertEquals(m.getWidth(), 1, 0.001);
	}
@ Test public void testMapResizing ( ) { Map m = new Map ( ) ; Wall w = new Wall ( 10 , 10 , 0.1 , 0.1 ) ; m . add ( w ) ; Assert . assertTrue ( m . getHeight ( ) >= 10.1 ) ; Assert . assertTrue ( m . getWidth ( ) >= 10.1 ) ; m . remove ( w ) ; Assert . assertEquals ( m . getHeight ( ) , 1 , 0.001 ) ; Assert . assertEquals ( m . getWidth ( ) , 1 , 0.001 ) ; }
Tests the automatic resizing of the map.
Tests the automatic resizing of the map .