Skip to content

Commit

Permalink
Fix several of the unit test XML files missing minimal elements for a…
Browse files Browse the repository at this point in the history
… successful load where the goal was to test something that comes after those elements.
  • Loading branch information
CelticMinstrel committed Mar 9, 2025
1 parent f2bdbae commit 18a9e34
Show file tree
Hide file tree
Showing 11 changed files with 77 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/files/scenario/rect_bad_attr.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
<version>2.5.3</version>
</creator>
<game>
<num-towns>1</num-towns>
<out-width>1</out-width>
<out-height>1</out-height>
<start-town>0</start-town>
<town-start x='0' y='0'/>
<outdoor-start x='0' y='0'/>
<sector-start x='0' y='0'/>
<store-items bad='0'/>
</game>
</scenario>
7 changes: 7 additions & 0 deletions test/files/scenario/rect_missing_bottom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
<version>2.5.3</version>
</creator>
<game>
<num-towns>1</num-towns>
<out-width>1</out-width>
<out-height>1</out-height>
<start-town>0</start-town>
<town-start x='0' y='0'/>
<outdoor-start x='0' y='0'/>
<sector-start x='0' y='0'/>
<store-items town='0' top='0' left='0' right='10'/>
</game>
</scenario>
7 changes: 7 additions & 0 deletions test/files/scenario/rect_missing_left.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
<version>2.5.3</version>
</creator>
<game>
<num-towns>1</num-towns>
<out-width>1</out-width>
<out-height>1</out-height>
<start-town>0</start-town>
<town-start x='0' y='0'/>
<outdoor-start x='0' y='0'/>
<sector-start x='0' y='0'/>
<store-items town='0' top='0' bottom='10' right='10'/>
</game>
</scenario>
7 changes: 7 additions & 0 deletions test/files/scenario/rect_missing_right.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
<version>2.5.3</version>
</creator>
<game>
<num-towns>1</num-towns>
<out-width>1</out-width>
<out-height>1</out-height>
<start-town>0</start-town>
<town-start x='0' y='0'/>
<outdoor-start x='0' y='0'/>
<sector-start x='0' y='0'/>
<store-items town='0' top='0' left='0' bottom='10'/>
</game>
</scenario>
7 changes: 7 additions & 0 deletions test/files/scenario/rect_missing_top.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
<version>2.5.3</version>
</creator>
<game>
<num-towns>1</num-towns>
<out-width>1</out-width>
<out-height>1</out-height>
<start-town>0</start-town>
<town-start x='0' y='0'/>
<outdoor-start x='0' y='0'/>
<sector-start x='0' y='0'/>
<store-items town='0' left='0' bottom='10' right='10'/>
</game>
</scenario>
7 changes: 7 additions & 0 deletions test/files/scenario/rect_missing_town.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
<version>2.5.3</version>
</creator>
<game>
<num-towns>1</num-towns>
<out-width>1</out-width>
<out-height>1</out-height>
<start-town>0</start-town>
<town-start x='0' y='0'/>
<outdoor-start x='0' y='0'/>
<sector-start x='0' y='0'/>
<store-items top='0' left='0' bottom='10' right='10'/>
</game>
</scenario>
7 changes: 7 additions & 0 deletions test/files/scenario/timer_bad_attr.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
<version>2.5.3</version>
</creator>
<game>
<num-towns>1</num-towns>
<out-width>1</out-width>
<out-height>1</out-height>
<start-town>0</start-town>
<town-start x='0' y='0'/>
<outdoor-start x='0' y='0'/>
<sector-start x='0' y='0'/>
<timer bad="100">15</timer>
</game>
</scenario>
7 changes: 7 additions & 0 deletions test/files/scenario/timer_missing_freq.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
<version>2.5.3</version>
</creator>
<game>
<num-towns>1</num-towns>
<out-width>1</out-width>
<out-height>1</out-height>
<start-town>0</start-town>
<town-start x='0' y='0'/>
<outdoor-start x='0' y='0'/>
<sector-start x='0' y='0'/>
<timer>15</timer>
</game>
</scenario>
7 changes: 7 additions & 0 deletions test/files/scenario/too_many_flags.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
<version>2.5.3</version>
</creator>
<game>
<num-towns>1</num-towns>
<out-width>1</out-width>
<out-height>1</out-height>
<start-town>0</start-town>
<town-start x='0' y='0'/>
<outdoor-start x='0' y='0'/>
<sector-start x='0' y='0'/>
<town-flag town="1" add-x="16" add-y="21"/>
<town-flag town="1" add-x="16" add-y="21"/>
<town-flag town="1" add-x="16" add-y="21"/>
Expand Down
7 changes: 7 additions & 0 deletions test/files/scenario/too_many_rects.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
<version>2.5.3</version>
</creator>
<game>
<num-towns>1</num-towns>
<out-width>1</out-width>
<out-height>1</out-height>
<start-town>0</start-town>
<town-start x='0' y='0'/>
<outdoor-start x='0' y='0'/>
<sector-start x='0' y='0'/>
<store-items town="0" top="12" left="13" bottom="20" right="36"/>
<store-items town="0" top="12" left="13" bottom="20" right="36"/>
<store-items town="0" top="12" left="13" bottom="20" right="36"/>
Expand Down
7 changes: 7 additions & 0 deletions test/files/scenario/too_many_timers.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
<version>2.5.3</version>
</creator>
<game>
<num-towns>1</num-towns>
<out-width>1</out-width>
<out-height>1</out-height>
<start-town>0</start-town>
<town-start x='0' y='0'/>
<outdoor-start x='0' y='0'/>
<sector-start x='0' y='0'/>
<timer freq="100">15</timer>
<timer freq="100">15</timer>
<timer freq="100">15</timer>
Expand Down

0 comments on commit 18a9e34

Please sign in to comment.