tests/fairland: Improve coverage

Rename the existing fairland run to "plain".

New run "stunted" to cover larger minimal distances, islands
that can't fully grow, and islands that can't be placed.

New run "no-spike" to cover 0% spike.

New run "spike" to cover high spike percentage, mountains and -i.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2020-07-28 06:44:08 +02:00
parent c4441014e3
commit f18159fb23
13 changed files with 3470 additions and 4 deletions

View file

@ -0,0 +1,7 @@
add 1 1 1 p
newcap 1 7,1
add 2 2 2 p
newcap 2 40,4
add 3 3 3 p
newcap 3 48,20
add 4 visitor visitor v

View file

@ -0,0 +1,58 @@
Creating a planet with:
3 continents
continent size: 30
number of islands: 15
average size of islands: 10
spike: 0%
0% of land is mountain (each continent will have 0 mountains)
minimum distance between continents: 2
minimum distance from islands to continents: 1
World dimensions: 64x32
#*# ...fairland rips open a rift in the datumplane... #*#
seed is 1
placing capitals...
growing continents...
growing islands: 1(3) 2(8) 3(13) 4(7) 5(10) 6(10) 7(2) 8(8) 9(14) 10(17) 11(13) 12(15) 13(9) 14(8) 15(3)
elevating land...
designating sectors...
adding resources...
setting coastal flags...
writing to sectors file...
. . . % . . . % . . . . . . . . % % . % . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . % % . . . . . . . . . . . .
. . . . . . . # # . . . . . . . . . % % % . . . . % . . . . . .
. . . . . . # # . # . . . . . . . % % % . . . . % % . . . . . .
. . . . . . # # c c # . . . % % % . . . . . . . % % % . . . . .
. . . . . # # # # # # . . . % % % . . . . . . . % % . . . . . .
. . . . . . . # # # # . . . % . % . . . . . . . . . . . . . . .
. . . . . # # # # # . . . . . . . . . . . . . . . . . . . . . .
. . . . . # # # . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . # # . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . % . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . % % % % . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . % % % . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . % % . . . % . . . . . . . . . . . . . . . . . .
. . . % . . . . . . . . . . % % . . # # # # . . . . . . . . . .
. . % % . . . . . . . . . % % % . . # # # # . . . . . . % . . .
. . . . . . . . . . . . . % % % % . . # # # # . . . . . % % . .
. . . . . # # # . . . . . % % % % . # a a # # . . . . % % % % .
. . . . # # # # # . . . % . % % % . # # # # # # . . . % % % . .
% . . # # # # # . . . % . . . . . # # # # # # . . . . . . . . .
% . . # b b # # # . . % . . % % . . . # . . . . . . . . . . % %
% . . # # # # # . . . . % % % % % . . . . . . . . . . . . . % %
. . . . # # # # . . . . . % % % % . . . . . . . . . . . . . % %
. . . . # # . . . . . . % % % . . . . . . . . . . . . . . . % %
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . % .
. . . . . . . . . . . . . . . . . . . . . . . . . . . % % . % .
. . . . . . . . . . . . . . . . . . . . . . . . . . . % % % . .
. . % % . % . . . . . . . . . . . . . . . . . . . . . % % % . .
. . % % % . % . . . . . . . . . . . . . . . . . . . . . . . . .
. % % % % . % % % % . . . . . . . . . . . . . . . . . . . . . .
. . % % . . % % % % . . . . . % % % . . % % . . . . . . . . . .
. . % . . % % % % . . . . . . % % . . . . . . . . . . . . . . .
A script for adding all the countries can be found in "sandbox/no-spike-newcap_script".

File diff suppressed because it is too large Load diff

View file

@ -55,4 +55,4 @@ writing to sectors file...
% % % % . # . # # # . . . . . . . . . . . . . . . . % % % % . .
% % % . # # # # # . . . . . . . . . # . . . . . % % % % % . . %
A script for adding all the countries can be found in "sandbox/newcap_script".
A script for adding all the countries can be found in "sandbox/plain-newcap_script".

View file

@ -0,0 +1,17 @@
add 1 1 1 p
newcap 1 0,12
add 2 2 2 p
newcap 2 34,16
add 3 3 3 p
newcap 3 44,4
add 4 4 4 p
newcap 4 9,1
add 5 5 5 p
newcap 5 46,24
add 6 6 6 p
newcap 6 3,23
add 7 7 7 p
newcap 7 24,6
add 8 8 8 p
newcap 8 25,27
add 9 visitor visitor v

58
tests/fairland/spike.out Normal file
View file

@ -0,0 +1,58 @@
Creating a planet with:
8 continents
continent size: 30
number of islands: 8
average size of islands: 20
spike: 50%
10% of land is mountain (each continent will have 3 mountains)
minimum distance between continents: 2
minimum distance from islands to continents: 1
World dimensions: 64x32
#*# ...fairland rips open a rift in the datumplane... #*#
seed is 1
placing capitals...
growing continents...
growing islands: 1(30) 2(10) 3(26) 4(22) 5(20) 6(16) 7(29) 8(6)
elevating land...
designating sectors...
adding resources...
setting coastal flags...
writing to sectors file...
. b b # # # . . . . % % . . . # . % % ^ % . . . . . . . . . . .
. # # # # . . . . . % % . . # . % % % % . . . . . . . . . . . .
# # ^ # . # . . . . . % ^ . . . . . . . . . . . . . . . . . . .
# # # # # . . . . . . % % % . . . . . . . . . . . . . . . . . .
# . ^ # . . . # # . . . . % . . . . . . . . . . . . . . . . . .
# # ^ . . . # # . . . . . . . . . # . . . . . . . . . . . . . .
. . # # . . # . # # # . . . . . . # # # . . # . . . . . . . . .
% . . # . . # # ^ ^ # . # . . . . f f # # # . . . . . # # # . %
% % % . . . . e e ^ # # # . % . . . # # # # # . . . . # ^ # ^ .
% % % % . # # # # # # . . % % . # # ^ # # ^ # . . . # # ^ # # .
% % % % % . . # # # # . % % % . . # . # # # # . . # # # # # # .
^ % % % % . . . . . . % % % . . . . . # ^ . . . . # # # h h # .
% % % % % . . . . . . % ^ % % % . . . # . . . . . . # # # . . .
. % ^ % % . . . . % % ^ % % % . . . . . . . # . . # # . . % % %
. . % % % % . . . . % % % % . % . . . . . # # # . . . # . % % .
. . % . ^ . # . . . % ^ % . . . . . . . # # # . . . . . % % % %
. . . % % . . # . . . % . % . . . . . . ^ # # # . . . . % % % %
. . . % . . # . . . . . . . . . . . . ^ d d . . . . . . % % % %
^ . . . % . # . . # . . . . . . . . . # # # . . . . . . . % % %
. . . . . # # # # . . . . . . . . . # ^ # # # . . . . . % . % .
. . . . # # c c # # . . . . . . . . # # # # # . . . . . . . . .
# . . . . # # # ^ # . . . . . . . . # . # # . . . . . # ^ . . #
# . . # # # # # # ^ . . . # . # . . . . . . . . . . . . g g # #
# . . ^ . . . # # . . . . # # . . . . . . . . . . . . . # # # #
# . . . . % ^ . . . . . . . # # # . . . . . . . . . . . # # ^ #
# . . . % . % % % % . . ^ # ^ . # . . . . . . . . . . . # ^ # #
# . . . . . . . % % . . . . . # # . . . . . . . . . . . . # # #
. . . . . . % % % % . . . . . # . # . % . . . . . . . . . . # .
. . . . . . % % % % % . . # # # a a . % % . . . . . . . . . . #
. . . . . % % % % % % % . # ^ # # . % ^ % % . . . . . . . . . .
. . . . . . . % % % % ^ % . # # . . % % % . . . . . . . . . . .
. # . . . # . % ^ % % % . # # . % % % % . . . . . . . . . . . .
A script for adding all the countries can be found in "sandbox/spike-newcap_script".

1075
tests/fairland/spike.xdump Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,17 @@
add 1 1 1 p
newcap 1 53,11
add 2 2 2 p
newcap 2 45,31
add 3 3 3 p
newcap 3 8,4
add 4 4 4 p
newcap 4 29,7
add 5 5 5 p
newcap 5 17,17
add 6 6 6 p
newcap 6 38,18
add 7 7 7 p
newcap 7 62,24
add 8 8 8 p
newcap 8 24,28
add 9 visitor visitor v

View file

@ -0,0 +1,70 @@
Creating a planet with:
8 continents
continent size: 37
number of islands: 24
average size of islands: 15
spike: 0%
0% of land is mountain (each continent will have 0 mountains)
minimum distance between continents: 5
minimum distance from islands to continents: 2
World dimensions: 64x32
#*# ...fairland rips open a rift in the datumplane... #*#
seed is 1
placing capitals...
growing continents...
fairland: error -- continent h had no room to grow!
Only managed to grow 33 out of 37 sectors.
try #2 (out of 10)...
placing capitals...
growing continents...
fairland: error -- continent h had no room to grow!
Only managed to grow 31 out of 37 sectors.
try #3 (out of 10)...
placing capitals...
growing continents...
growing islands: 1(14) 2(20) 3(11) 4(16) 5(14) 6(8) 7(2) 8(3) 9(4) 10(5) 11(14) 12(3)
elevating land...
designating sectors...
adding resources...
setting coastal flags...
writing to sectors file...
. . # # # # . . % . . . . % % % % . . . . . . # # # # # # . . %
. . # # # # . . % . . . % % % . . . % % . . # # e e # # . . % %
. . . f f # # . . . . . % % . . . . % % . . # # # # # # . . % %
. # # # # # # . . . . . % . . . . . % . . # # # # # # . . % % .
. . . # # # # # . . . . . . . . # . . % . . . # # # # . . % % .
. . . # # # # # # . . . . . . # # . . % . . . . . . . . % % . .
% % . . # # # # . . . % . . # # # # . . % . . . . . . . % % . .
. % . . # # . . . . % . . # # # # # . . . . % . . % % % . . . .
. . % . . . . . . . % . . # # g g # # . . . % % . . . . . . . .
. . . . . . . . . . . . . # # # # # # # . . % . . . . . . # # #
# . . . . . . . . . . . . . # # # # . # . . % . . # # . . # # #
# . . . . . . . . . . . . . # # # # . . . . . . # # . # # # # #
# . . . . . . . . # . . . . . # # # . . . . . . . # # # h h # #
. . . . . # # # # # . . . . . . . . . . . . . . . # # # # # # #
. . . . . # # # # # # . . . . . . . . . . . . . . . # # # # . .
. . . . # # b b # # # . . . . . . . . . . . . % . . # . . . . .
. . . . . # # # # # # # . . % % . . . . . . . . % . . . . . . %
. . . . . . # # # # # # . . % . . . . . # # . . % . . . % % % .
. . . . . . . # # # # # . . % . . # # # # # # . . % % % % . . .
# . . % % . . . . . . . . % % . . # # # # # # . . % % % . . . .
# # . . . % . . . . . . . % % % . . # # c c # # . . % % . . # #
# # . . . % % % . . . % % % % % . . # # # # # # . . % . . # # #
# # # # . . % % . . . . . . . . . . . # # # # # . . % . . # # #
# # # # . . % . . . . . . . . . . . . # # # # # . . % . . # d d
# # # # . . % . . # # . . # # . . . . . . . # . . . . % . . # #
# # # . . % . . # # # # # # # . . . . . . . . . . . . . . # # #
. . . . . % . . # # # # # # # # . . % % % . . . % % . . . . . #
. . . . % % . . # # a a # # . . . . % % % . . % . . . . . . . .
. . . . . . . . . # # # # # # . . % % % % . . . . . . . . . . .
. . . . . . . . . # # # . # . . . . % % % . . . . # . . . . . .
. . . . . . . . . . . # . . . . . . . % . . . . # # # . . . . .
. . . # # . . . . . # . . . . % . . . . . . . # # # # # . . . .
A script for adding all the countries can be found in "sandbox/stunted-newcap_script".

1075
tests/fairland/stunted.xdump Normal file

File diff suppressed because it is too large Load diff