[LIB-9] Separate chesshog-format module
[chesshog.git] / chesshog-format / src / test / resources / org / hedgecode / chess / wiki / WikiParserTest.xml
diff --git a/chesshog-format/src/test/resources/org/hedgecode/chess/wiki/WikiParserTest.xml b/chesshog-format/src/test/resources/org/hedgecode/chess/wiki/WikiParserTest.xml
new file mode 100644 (file)
index 0000000..3cdcd7e
--- /dev/null
@@ -0,0 +1,89 @@
+<?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>
+            <wiki>
+                <![CDATA[
+|rd|nd|bd|qd|kd|bd|nd|rd
+|pd|pd|pd|pd|pd|pd|pd|pd
+|  |  |  |  |  |  |  |
+|  |  |  |  |  |  |  |
+|  |  |  |  |  |  |  |
+|  |  |  |  |  |  |  |
+|pl|pl|pl|pl|pl|pl|pl|pl
+|rl|nl|bl|ql|kl|bl|nl|rl
+                ]]>
+            </wiki>
+            <withTemplate>false</withTemplate>
+            <position>
+                <initial>true</initial>
+            </position>
+        </test>
+        <test>
+            <name>Anderssen's Mate</name>
+            <wiki>
+                <![CDATA[
+|  |  |  |bl|bl|  |  |kl
+|  |  |  |  |  |  |  |pd
+|  |  |  |  |  |  |  |kd
+|  |  |  |  |  |  |  |
+|  |  |  |  |  |  |  |
+|  |  |  |  |  |pl|  |pd
+|  |  |  |  |  |  |  |pl
+|  |  |  |  |  |  |  |
+                ]]>
+            </wiki>
+            <withTemplate>false</withTemplate>
+            <position>
+                <squares>
+                    <h8>WHITE_KING</h8>
+                    <d8>WHITE_BISHOP</d8>
+                    <e8>WHITE_BISHOP</e8>
+                    <f3>WHITE_PAWN</f3>
+                    <h2>WHITE_PAWN</h2>
+                    <h6>BLACK_KING</h6>
+                    <h7>BLACK_PAWN</h7>
+                    <h3>BLACK_PAWN</h3>
+                </squares>
+                <move>WHITE</move>
+            </position>
+        </test>
+        <test>
+            <name>Empty Position</name>
+            <wiki>
+                <![CDATA[
+|  |  |  |  |  |  |  |
+|  |  |  |  |  |  |  |
+|  |  |  |  |  |  |  |
+|  |  |  |  |  |  |  |
+|  |  |  |  |  |  |  |
+|  |  |  |  |  |  |  |
+|  |  |  |  |  |  |  |
+|  |  |  |  |  |  |  |
+               ]]>
+            </wiki>
+            <position>
+                <empty>true</empty>
+                <move>WHITE</move>
+            </position>
+        </test>
+    </tests>
+</config>