test: make pawn promotion move

This commit is contained in:
dogeystamp 2024-10-04 22:34:45 -04:00
parent f73d34ee41
commit ecda71f176

View File

@ -317,6 +317,20 @@ mod tests {
),
],
),
// pawn promotion test
(
"4k3/6P1/8/8/8/8/1p6/4K3 w - - 0 1",
vec![
(
"g7g8n",
"4k1N1/8/8/8/8/8/1p6/4K3 b - - 0 1",
),
(
"b2b1q",
"4k1N1/8/8/8/8/8/8/1q2K3 w - - 0 2",
),
],
),
];
for (i, test_case) in test_cases.iter().enumerate() {