package gbData;

import static org.junit.Assert.*;

import org.junit.Test;

public class GameFieldTest {

	@Test
	public void test() {
		gameToken tokenB = new tokenBlack();
		gameToken tokenW = new tokenWhite();
		gameField myField = new gameField();
		
		assertEquals(19, myField.getSize());
		assertEquals('e', myField.putStone(15, 14, tokenB));
		assertEquals('b', myField.putStone(15, 14, tokenB));
		assertEquals('b', myField.putStone(15, 14, tokenW));
		
		assertEquals('f', myField.putStone(-1, 1, tokenB));	
		assertEquals('f', myField.putStone(0, 0, tokenB));	
		assertEquals('e', myField.putStone(19,19, tokenW));	
		assertEquals('f', myField.putStone(20,15,tokenW)); 	
		assertEquals('f', myField.putStone(15,20, tokenW));	
		assertEquals('f', myField.putStone(20,20, tokenW));	
	}

}

@@ -283,24 +283,44 @@
 getSize());%0A
+%09%09%0A%09%09//left - right%0A
 %09%09assertEqua
@@ -354,32 +354,1414 @@
 , 14, tokenB));%0A
+%09%09assertEquals('e', myField.putStone(15, 13, tokenB));%0A%09%09assertEquals('e', myField.putStone(15, 15, tokenB));%0A%09%09assertEquals('e', myField.putStone(15, 16, tokenB));%0A%09%09assertEquals('g', myField.putStone(15, 17, tokenB));%0A%09%09%0A%09%09//up - down%0A%09%09assertEquals('e', myField.putStone(8, 10, tokenB));%0A%09%09assertEquals('e', myField.putStone(9, 10, tokenB));%0A%09%09assertEquals('e', myField.putStone(10, 10, tokenB));%0A%09%09assertEquals('e', myField.putStone(11, 10, tokenB));%0A%09%09assertEquals('g', myField.putStone(7, 10, tokenB));%0A%09%09%0A%09%09//leftUp - downRight%0A%09%09assertEquals('e', myField.putStone(6, 14, tokenB));%0A%09%09assertEquals('e', myField.putStone(5, 13, tokenB));%0A%09%09assertEquals('e', myField.putStone(8, 16, tokenB));%0A%09%09assertEquals('e', myField.putStone(7, 15, tokenB));%0A%09%09assertEquals('g', myField.putStone(4, 12, tokenB));%0A%09%09%0A%09%09//leftDown - rightUp%0A%09%09assertEquals('e', myField.putStone(10, 7, tokenB));%0A%09%09assertEquals('e', myField.putStone(12, 5, tokenB));%0A%09%09assertEquals('e', myField.putStone(14, 3, tokenB));%0A%09%09assertEquals('e', myField.putStone(11, 6, tokenB));%0A%09%09assertEquals('g', myField.putStone(13, 4, tokenB));%0A%09%09%0A%09%09assertEquals('e', myField.putStone(17, 14, tokenB));%0A%09%09assertEquals('e', myField.putStone(17, 13, tokenB));%0A%09%09assertEquals('e', myField.putStone(17, 15, tokenB));%0A%09%09assertEquals('e', myField.putStone(17, 16, tokenB));%0A%09%09assertEquals('e', myField.putStone(17, 17, tokenW));%0A%09%09%0A
 %09%09assertEquals('

Test fuer getWin geschrieben