Permalink
Browse files

Passed testAllAbbreviationsOfPieces

  • Loading branch information...
1 parent ded987f commit 1c310f8207c5d7819fed3c466f9430f6a996df43 Kestutis-Z committed Nov 7, 2012
@@ -2,6 +2,9 @@
import static org.junit.Assert.*;
+import java.util.ArrayList;
+import java.util.List;
+
import org.junit.Test;
public class PieceTest {
@@ -29,7 +32,37 @@ public void testGetPieceAbbreviation() {
@Test
public void testAllAbbreviationsOfPieces() {
+ List<String> expectedList = new ArrayList<>();
+
+ expectedList.add("WK");
+ expectedList.add("WQ");
+ expectedList.add("WQ2");
+ expectedList.add("WR");
+ expectedList.add("WR2");
+ expectedList.add("WB");
+ expectedList.add("WB2");
+ expectedList.add("WN");
+ expectedList.add("WN2");
+ expectedList.add("WP");
+ expectedList.add("WP2");
+ expectedList.add("WP3");
+
+ expectedList.add("BK");
+ expectedList.add("BQ");
+ expectedList.add("BQ2");
+ expectedList.add("BR");
+ expectedList.add("BR2");
+ expectedList.add("BB");
+ expectedList.add("BB2");
+ expectedList.add("BN");
+ expectedList.add("BN2");
+ expectedList.add("BP");
+ expectedList.add("BP2");
+ expectedList.add("BP3");
+
+ List<String> actualList = Piece.allAbbreviationsOfPieces();
+ assertEquals(expectedList, actualList);
}
}
Binary file not shown.

0 comments on commit 1c310f8

Please sign in to comment.