Skip to content
Browse files

Passed testGetTablebasePositionCount

  • Loading branch information...
1 parent e857575 commit 0cce83f3b4f8135e34ea1cfe323390c3dfe0f467 Kestutis-Z committed Nov 5, 2012
View
20 endgame-oracle/src/test/java/tablebases/TablebaseTest.java
@@ -45,7 +45,25 @@ public void testGetTablebasePositionCount() {
Tablebase tablebase1 = Tablebase.KRKR;
Tablebase tablebase2 = Tablebase.KPK;
- long expectedPositionCountactualPositionCount;
+ long expectedPositionCount, actualPositionCount;
+
+ expectedPositionCount = tablebase1.getWhiteToMovePositionCount();
+ actualPositionCount = 10780728;
+ assertEquals(expectedPositionCount, actualPositionCount);
+
+ expectedPositionCount = tablebase1.getBlackToMovePositionCount();
+ actualPositionCount = 10780728;
+ assertEquals(expectedPositionCount, actualPositionCount);
+
+ expectedPositionCount = tablebase2.getWhiteToMovePositionCount();
+ actualPositionCount = 163328;
+ assertEquals(expectedPositionCount, actualPositionCount);
+
+ expectedPositionCount = tablebase2.getBlackToMovePositionCount();
+ actualPositionCount = 168024;
+ assertEquals(expectedPositionCount, actualPositionCount);
}
+
+
}
View
BIN endgame-oracle/target/classes/tablebases/Tablebase.class
Binary file not shown.
View
BIN endgame-oracle/target/test-classes/tablebases/TablebaseTest.class
Binary file not shown.

0 comments on commit 0cce83f

Please sign in to comment.
Something went wrong with that request. Please try again.