summaryrefslogtreecommitdiff
path: root/features/castling.feature
diff options
context:
space:
mode:
Diffstat (limited to 'features/castling.feature')
-rw-r--r--features/castling.feature7
1 files changed, 7 insertions, 0 deletions
diff --git a/features/castling.feature b/features/castling.feature
new file mode 100644
index 0000000..8cbcf02
--- /dev/null
+++ b/features/castling.feature
@@ -0,0 +1,7 @@
+Scenario: e1-b1 is misinterpreted as O-O-O when it should be illegal
+ Given game with fen "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/R3KBNR w KQkq -"
+ Then the move "e1-b1" is illegal
+
+Scenario: e8-b8 is misinterpreted as O-O-O when it should be illegal
+ Given game with fen "r3kbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR b KQkq -"
+ Then the move "e8-b8" is illegal