[LIB-9] Separate chesshog-format module
[chesshog.git] / chesshog-format / src / test / resources / org / hedgecode / chess / ascii / ASCIIBuilderTest.xml
diff --git a/chesshog-format/src/test/resources/org/hedgecode/chess/ascii/ASCIIBuilderTest.xml b/chesshog-format/src/test/resources/org/hedgecode/chess/ascii/ASCIIBuilderTest.xml
new file mode 100644 (file)
index 0000000..364cc97
--- /dev/null
@@ -0,0 +1,172 @@
+<?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>
+            <ascii>
+                <![CDATA[
+ +-------------------------------+
+ | r | n | b | q | k | b | n | r |
+ +-------------------------------+
+ | p | p | p | p | p | p | p | p |
+ +-------------------------------+
+ |   |   |   |   |   |   |   |   |
+ +-------------------------------+
+ |   |   |   |   |   |   |   |   |
+ +-------------------------------+
+ |   |   |   |   |   |   |   |   |
+ +-------------------------------+
+ |   |   |   |   |   |   |   |   |
+ +-------------------------------+
+ | P | P | P | P | P | P | P | P |
+ +-------------------------------+
+ | R | N | B | Q | K | B | N | R |
+ +-------------------------------+
+                ]]>
+            </ascii>
+            <asciiType>HYPHEN</asciiType>
+            <position>
+                <initial>true</initial>
+            </position>
+        </test>
+        <test>
+            <name>Initial Position</name>
+            <ascii>
+                <![CDATA[
+  ___ ___ ___ ___ ___ ___ ___ ___
+ |_r_|_n_|_b_|_q_|_k_|_b_|_n_|_r_|
+ |_p_|_p_|_p_|_p_|_p_|_p_|_p_|_p_|
+ |___|___|___|___|___|___|___|___|
+ |___|___|___|___|___|___|___|___|
+ |___|___|___|___|___|___|___|___|
+ |___|___|___|___|___|___|___|___|
+ |_P_|_P_|_P_|_P_|_P_|_P_|_P_|_P_|
+ |_R_|_N_|_B_|_Q_|_K_|_B_|_N_|_R_|
+                ]]>
+            </ascii>
+            <asciiType>TIGHT</asciiType>
+            <position>
+                <initial>true</initial>
+            </position>
+        </test>
+        <test>
+            <name>Initial Position</name>
+            <ascii>
+                <![CDATA[
+      a  b  c  d  e  f  g  h
+    +------------------------+
+  8 | r  n  b  q  k  b  n  r | 8
+  7 | p  p  p  p  p  p  p  p | 7
+  6 | .  .  .  .  .  .  .  . | 6
+  5 | .  .  .  .  .  .  .  . | 5
+  4 | .  .  .  .  .  .  .  . | 4
+  3 | .  .  .  .  .  .  .  . | 3
+  2 | P  P  P  P  P  P  P  P | 2
+  1 | R  N  B  Q  K  B  N  R | 1
+    +------------------------+
+      a  b  c  d  e  f  g  h
+                ]]>
+            </ascii>
+            <asciiType>DOT</asciiType>
+            <withNotation>true</withNotation>
+            <position>
+                <initial>true</initial>
+            </position>
+        </test>
+        <test>
+            <name>Initial Position</name>
+            <ascii>
+                <![CDATA[
+ ╔═══╤═══╤═══╤═══╤═══╤═══╤═══╤═══╗
+ ║ r │ n │ b │ q │ k │ b │ n │ r ║
+ ╟───┼───┼───┼───┼───┼───┼───┼───╢
+ ║ p │ p │ p │ p │ p │ p │ p │ p ║
+ ╟───┼───┼───┼───┼───┼───┼───┼───╢
+ ║   │   │   │   │   │   │   │   ║
+ ╟───┼───┼───┼───┼───┼───┼───┼───╢
+ ║   │   │   │   │   │   │   │   ║
+ ╟───┼───┼───┼───┼───┼───┼───┼───╢
+ ║   │   │   │   │   │   │   │   ║
+ ╟───┼───┼───┼───┼───┼───┼───┼───╢
+ ║   │   │   │   │   │   │   │   ║
+ ╟───┼───┼───┼───┼───┼───┼───┼───╢
+ ║ P │ P │ P │ P │ P │ P │ P │ P ║
+ ╟───┼───┼───┼───┼───┼───┼───┼───╢
+ ║ R │ N │ B │ Q │ K │ B │ N │ R ║
+ ╚═══╧═══╧═══╧═══╧═══╧═══╧═══╧═══╝
+                ]]>
+            </ascii>
+            <asciiType>CP866</asciiType>
+            <withNotation>false</withNotation>
+            <position>
+                <initial>true</initial>
+            </position>
+        </test>
+        <test>
+            <name>Reti's Etude</name>
+            <ascii>
+                <![CDATA[
+ +------------------------+
+ | .  .  .  .  .  .  .  K |
+ | .  .  .  .  .  .  .  . |
+ | k  .  P  .  .  .  .  . |
+ | .  .  .  .  .  .  .  p |
+ | .  .  .  .  .  .  .  . |
+ | .  .  .  .  .  .  .  . |
+ | .  .  .  .  .  .  .  . |
+ | .  .  .  .  .  .  .  . |
+ +------------------------+
+                ]]>
+            </ascii>
+            <asciiType>DOT</asciiType>
+            <position>
+                <squares>
+                    <h8>WHITE_KING</h8>
+                    <c6>WHITE_PAWN</c6>
+                    <a6>BLACK_KING</a6>
+                    <h5>BLACK_PAWN</h5>
+                </squares>
+                <move>WHITE</move>
+            </position>
+        </test>
+        <test>
+            <name>Empty Position</name>
+            <ascii>
+                <![CDATA[
+ +------------------------+
+ | .  .  .  .  .  .  .  . |
+ | .  .  .  .  .  .  .  . |
+ | .  .  .  .  .  .  .  . |
+ | .  .  .  .  .  .  .  . |
+ | .  .  .  .  .  .  .  . |
+ | .  .  .  .  .  .  .  . |
+ | .  .  .  .  .  .  .  . |
+ | .  .  .  .  .  .  .  . |
+ +------------------------+
+                ]]>
+            </ascii>
+            <asciiType>DOT</asciiType>
+            <position>
+                <empty>true</empty>
+                <move>WHITE</move>
+            </position>
+        </test>
+    </tests>
+</config>