[LIB-9] Separate chesshog-format module
[chesshog.git] / chesshog-format / src / test / resources / org / hedgecode / chess / wiki / WikiParserTest.xml
1 <?xml version='1.0' encoding='UTF-8'?>
2
3 <!--
4   ~ Copyright (c) 2018. Developed by Hedgecode.
5   ~
6   ~ Licensed under the Apache License, Version 2.0 (the "License");
7   ~ you may not use this file except in compliance with the License.
8   ~ You may obtain a copy of the License at
9   ~
10   ~   http://www.apache.org/licenses/LICENSE-2.0
11   ~
12   ~ Unless required by applicable law or agreed to in writing, software
13   ~ distributed under the License is distributed on an "AS IS" BASIS,
14   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   ~ See the License for the specific language governing permissions and
16   ~ limitations under the License.
17   -->
18
19 <config>
20     <tests>
21         <test>
22             <name>Initial Position</name>
23             <wiki>
24                 <![CDATA[
25 |rd|nd|bd|qd|kd|bd|nd|rd
26 |pd|pd|pd|pd|pd|pd|pd|pd
27 |  |  |  |  |  |  |  |
28 |  |  |  |  |  |  |  |
29 |  |  |  |  |  |  |  |
30 |  |  |  |  |  |  |  |
31 |pl|pl|pl|pl|pl|pl|pl|pl
32 |rl|nl|bl|ql|kl|bl|nl|rl
33                 ]]>
34             </wiki>
35             <withTemplate>false</withTemplate>
36             <position>
37                 <initial>true</initial>
38             </position>
39         </test>
40         <test>
41             <name>Anderssen's Mate</name>
42             <wiki>
43                 <![CDATA[
44 |  |  |  |bl|bl|  |  |kl
45 |  |  |  |  |  |  |  |pd
46 |  |  |  |  |  |  |  |kd
47 |  |  |  |  |  |  |  |
48 |  |  |  |  |  |  |  |
49 |  |  |  |  |  |pl|  |pd
50 |  |  |  |  |  |  |  |pl
51 |  |  |  |  |  |  |  |
52                 ]]>
53             </wiki>
54             <withTemplate>false</withTemplate>
55             <position>
56                 <squares>
57                     <h8>WHITE_KING</h8>
58                     <d8>WHITE_BISHOP</d8>
59                     <e8>WHITE_BISHOP</e8>
60                     <f3>WHITE_PAWN</f3>
61                     <h2>WHITE_PAWN</h2>
62                     <h6>BLACK_KING</h6>
63                     <h7>BLACK_PAWN</h7>
64                     <h3>BLACK_PAWN</h3>
65                 </squares>
66                 <move>WHITE</move>
67             </position>
68         </test>
69         <test>
70             <name>Empty Position</name>
71             <wiki>
72                 <![CDATA[
73 |  |  |  |  |  |  |  |
74 |  |  |  |  |  |  |  |
75 |  |  |  |  |  |  |  |
76 |  |  |  |  |  |  |  |
77 |  |  |  |  |  |  |  |
78 |  |  |  |  |  |  |  |
79 |  |  |  |  |  |  |  |
80 |  |  |  |  |  |  |  |
81                ]]>
82             </wiki>
83             <position>
84                 <empty>true</empty>
85                 <move>WHITE</move>
86             </position>
87         </test>
88     </tests>
89 </config>