Add game framework tests and planning docs
This commit is contained in:
+2
-2
@@ -575,7 +575,7 @@ test "formatFen includes promoted white pieces" {
|
||||
state.fullmove = 1;
|
||||
state.setSquare(52, piece.encode(.white, .pawn));
|
||||
|
||||
try state.move(52, 60, case.promotion_type);
|
||||
state.move(52, 60, case.promotion_type);
|
||||
|
||||
const actual = try formatFen(std.testing.allocator, state);
|
||||
defer std.testing.allocator.free(actual);
|
||||
@@ -601,7 +601,7 @@ test "formatFen includes promoted black pieces" {
|
||||
state.fullmove = 7;
|
||||
state.setSquare(11, piece.encode(.black, .pawn));
|
||||
|
||||
try state.move(11, 3, case.promotion_type);
|
||||
state.move(11, 3, case.promotion_type);
|
||||
|
||||
const actual = try formatFen(std.testing.allocator, state);
|
||||
defer std.testing.allocator.free(actual);
|
||||
|
||||
Reference in New Issue
Block a user