YAML coverage - more locations and message

- LOC_DEADCRAWL
- CROSS_BRIDGE
- LOC_BOULDERS2.short
- LOC_WINDOW1
This commit is contained in:
Aaron Traas 2017-07-13 17:30:08 -04:00 committed by Eric S. Raymond
parent 4bffb10094
commit 342c27494d
6 changed files with 1942 additions and 3 deletions

View file

@ -597,6 +597,14 @@ You're in Bedquilt.
You are in a large low room. Crawls lead north, se, and sw.
> n
Dead end crawl.
> out
You're in large low room.
> sw
You are in a long winding corridor sloping out of sight in both
@ -629,10 +637,22 @@ mist. A notice posted on the bridge reads, "Stop! Pay troll!"
A burly troll stands by the bridge and insists you throw him a
treasure before you may cross.
>
> jump
I respectfully suggest you go across the bridge instead of jumping.
You're on sw side of chasm.
There is a little axe here.
A rickety wooden bridge extends across the chasm, vanishing into the
mist. A notice posted on the bridge reads, "Stop! Pay troll!"
A burly troll stands by the bridge and insists you throw him a
treasure before you may cross.
You scored 105 out of a possible 430, using 106 turns.
You scored 105 out of a possible 430, using 109 turns.
Your score qualifies you as a novice class adventurer.

View file

@ -1,4 +1,5 @@
## Test throwing axe at non-dwarves.
# Added coverage of LOC_DEADCRAWL and CROSS_BRIDGE
n
seed 1838473132
in
@ -110,8 +111,10 @@ throw axe
take axe
n
n
n
out
sw
up
# Troll bridge
throw axe
jump

1486
tests/boulder2.chk Normal file

File diff suppressed because it is too large Load diff

242
tests/boulder2.log Normal file
View file

@ -0,0 +1,242 @@
## Coverage of LOC_BOULDERS2.short
n
seed 1838473132
in
take lamp
xyzzy
on
take rod
e
take cage
w
w
w
drop rod
take bird
take rod
w
free bird
wave rod
drop rod
take bird
take rod
d
d
free bird
w
e
s
take n
u
s
n
d
n
n
plugh
extin
plugh
on
s
s
sw
take
w
kill drago
y
take rug
e
e
u
d
n
n
off
plugh
drop rug
out
s
w
n
take appen
drop cage
s
s
n
in
take water
plugh
on
plove
ne
s
plove
s
s
u
w
wave rod
drop rod
west
w
w
w
s
sw
se
s
kill machi
s
s
kill ogre
n
s
w
n
n
n
nw
d
e
e
e
e
e
throw axe
take axe
n
n
n
off
plugh
plugh
on
s
s
u
n
n
d
bedqu
throw axe
take
slab
s
d
water plant
u
w
u
reser
H'CFL
n
n
nw
u
u
u
u
ne
sw
d
d
d
d
d
take water
s
s
s
s
d
s
d
water plant
u
drop appen
e
d
g oil
u
w
d
climb
w
n
oil door
drop bottl
n
take tride
w
d
se
n
w
drop tride
drop axe
drop lante
e
take emera
w
take lamp
take axe
take tride
nw
s
se
throw axe
e
w
ne
e
n
open clam
s
u
e
u
n
off
plugh
drop tride
take key
take food
plugh
on
s
d
w
d
n
d
d
u
u
s
w
w
w
w
d
climb
w
g
n
take bottl
n
w
d
sw
u
toss egg
ne
barre
in
feed bear
unloc
take bear
fork
ne
e
out
e

164
tests/window1.chk Normal file
View file

@ -0,0 +1,164 @@
Welcome to Adventure!! Would you like instructions?
> n
You are standing at the end of a road before a small brick building.
Around you is a forest. A small stream flows out of the building and
down a gully.
> seed 183847312
Seed set to 183847312
You're in front of building.
> in
You are inside a building, a well house for a large spring.
There are some keys on the ground here.
There is a shiny brass lamp nearby.
There is food here.
There is a bottle of water here.
> take lamp
OK
> xyzzy
>>Foof!<<
It is now pitch dark. If you proceed you will likely fall into a pit.
> on
Your lamp is now on.
You are in a debris room filled with stuff washed in from the surface.
A low wide passage with cobbles becomes plugged with mud and debris
here, but an awkward canyon leads upward and west. In the mud someone
has scrawled, "MAGIC WORD XYZZY".
A three foot black rod with a rusty star on an end lies nearby.
> e
You are crawling over cobbles in a low passage. There is a dim light
at the east end of the passage.
There is a small wicker cage discarded nearby.
> take cage
OK
> w
You're in debris room.
A three foot black rod with a rusty star on an end lies nearby.
> w
You are in an awkward sloping east/west canyon.
> w
You are in a splendid chamber thirty feet high. The walls are frozen
rivers of orange stone. An awkward canyon and a good passage exit
from east and west sides of the chamber.
A cheerful little bird is sitting here singing.
> take bird
OK
> w
At your feet is a small pit breathing traces of white mist. An east
passage ends here except for a small crack leading on.
Rough stone steps lead down the pit.
> d
You are at one end of a vast hall stretching forward out of sight to
the west. There are openings to either side. Nearby, a wide stone
staircase leads downward. The hall is filled with wisps of white mist
swaying to and fro almost as if alive. A cold wind blows up the
staircase. There is a passage at the top of a dome behind you.
Rough stone steps lead up the dome.
> d
You are in the Hall of the Mountain King, with passages off in all
directions.
A huge green fierce snake bars the way!
> free bird
The little bird attacks the green snake, and in an astounding flurry
drives the snake away.
> w
You are in the west side chamber of the Hall of the Mountain King.
A passage continues west and up here.
There are many coins here!
> e
You're in Hall of Mt King.
A cheerful little bird is sitting here singing.
> n
You are in a low n/s passage at a hole in the floor. The hole goes
down to an e/w passage.
There are bars of silver here!
> n
A little dwarf just walked around a corner, saw you, threw a little
axe at you which missed, cursed, and ran away.
You are in a large room, with a passage to the south, a passage to the
west, and a wall of broken rock to the east. There is a large "Y2" on
a rock in the room's center.
There is a little axe here.
> w
You're at a low window overlooking a huge pit, which extends up out of
sight. A floor is indistinctly visible over 50 feet below. Traces of
white mist cover the floor of the pit, becoming thicker to the right.
Marks in the dust around the window would seem to indicate that
someone has been here recently. Directly across the pit from you and
25 feet away there is a similar window looking into a lighted room. A
shadowy figure can be seen there peering back at you.
The shadowy figure seems to be trying to attract your attention.
> y2
You're at "Y2".
There is a little axe here.
You scored 61 out of a possible 430, using 20 turns.
Your score qualifies you as a novice class adventurer.
To achieve the next higher rating, you need 60 more points.

24
tests/window1.log Normal file
View file

@ -0,0 +1,24 @@
## Coverage of LOC_WINDOW1
n
seed 183847312
in
take lamp
xyzzy
on
e
take cage
w
w
w
take bird
w
d
d
free bird
w
e
n
n
# go to LOC_WINDOW1
w
y2