[LIB-9] Separate chesshog-format module
[chesshog.git] / chesshog-format / src / test / resources / org / hedgecode / chess / fen / FENParserTest.xml
diff --git a/chesshog-format/src/test/resources/org/hedgecode/chess/fen/FENParserTest.xml b/chesshog-format/src/test/resources/org/hedgecode/chess/fen/FENParserTest.xml
new file mode 100644 (file)
index 0000000..cd6a652
--- /dev/null
@@ -0,0 +1,117 @@
+<?xml version='1.0' encoding='UTF-8'?>
+
+<!--
+  ~ Copyright (c) 2018. Developed by Hedgecode.
+  ~
+  ~ Licensed under the Apache License, Version 2.0 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~
+  ~   http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<config>
+    <tests>
+        <test>
+            <name>Initial Position</name>
+            <fen>rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1</fen>
+            <position>
+                <initial>true</initial>
+            </position>
+        </test>
+        <test>
+            <name>Evergreen Game</name>
+            <fen>1r2k1r1/pbppnp1p/1b3P2/8/Q7/B1PB1q2/P4PPP/3R2K1 w - - 0 21</fen>
+            <position>
+                <squares>
+                    <g1>WHITE_KING</g1>
+                    <a4>WHITE_QUEEN</a4>
+                    <d1>WHITE_ROOK</d1>
+                    <a3>WHITE_BISHOP</a3>
+                    <d3>WHITE_BISHOP</d3>
+                    <a2>WHITE_PAWN</a2>
+                    <c3>WHITE_PAWN</c3>
+                    <f6>WHITE_PAWN</f6>
+                    <f2>WHITE_PAWN</f2>
+                    <g2>WHITE_PAWN</g2>
+                    <h2>WHITE_PAWN</h2>
+                    <e8>BLACK_KING</e8>
+                    <f3>BLACK_QUEEN</f3>
+                    <b8>BLACK_ROOK</b8>
+                    <g8>BLACK_ROOK</g8>
+                    <b7>BLACK_BISHOP</b7>
+                    <b6>BLACK_BISHOP</b6>
+                    <e7>BLACK_KNIGHT</e7>
+                    <a7>BLACK_PAWN</a7>
+                    <c7>BLACK_PAWN</c7>
+                    <d7>BLACK_PAWN</d7>
+                    <f7>BLACK_PAWN</f7>
+                    <h7>BLACK_PAWN</h7>
+                </squares>
+                <move>WHITE</move>
+                <castle>
+                    <white>NONE</white>
+                    <black>NONE</black>
+                </castle>
+                <halfmove>0</halfmove>
+                <fullmove>21</fullmove>
+            </position>
+        </test>
+        <test>
+            <name>Immortal Zugzwang Game</name>
+            <fen>6k1/3q2p1/p2bp2p/3p1r2/1p1Pp3/3bQ1PP/PP1B1rB1/1N2R1RK w - - 0 26</fen>
+            <position>
+                <squares>
+                    <h1>WHITE_KING</h1>
+                    <e3>WHITE_QUEEN</e3>
+                    <e1>WHITE_ROOK</e1>
+                    <g1>WHITE_ROOK</g1>
+                    <d2>WHITE_BISHOP</d2>
+                    <g2>WHITE_BISHOP</g2>
+                    <b1>WHITE_KNIGHT</b1>
+                    <a2>WHITE_PAWN</a2>
+                    <b2>WHITE_PAWN</b2>
+                    <d4>WHITE_PAWN</d4>
+                    <g3>WHITE_PAWN</g3>
+                    <h3>WHITE_PAWN</h3>
+                    <g8>BLACK_KING</g8>
+                    <d7>BLACK_QUEEN</d7>
+                    <f5>BLACK_ROOK</f5>
+                    <f2>BLACK_ROOK</f2>
+                    <d6>BLACK_BISHOP</d6>
+                    <d3>BLACK_BISHOP</d3>
+                    <a6>BLACK_PAWN</a6>
+                    <b4>BLACK_PAWN</b4>
+                    <d5>BLACK_PAWN</d5>
+                    <e6>BLACK_PAWN</e6>
+                    <e4>BLACK_PAWN</e4>
+                    <g7>BLACK_PAWN</g7>
+                    <h6>BLACK_PAWN</h6>
+                </squares>
+                <move>WHITE</move>
+                <castle>
+                    <white>NONE</white>
+                    <black>NONE</black>
+                </castle>
+                <halfmove>0</halfmove>
+                <fullmove>26</fullmove>
+            </position>
+        </test>
+        <test>
+            <name>Empty Position</name>
+            <fen>8/8/8/8/8/8/8/8 w - - 0 1</fen>
+            <position>
+                <empty>true</empty>
+                <move>WHITE</move>
+                <halfmove>0</halfmove>
+                <fullmove>1</fullmove>
+            </position>
+        </test>
+    </tests>
+</config>