Test coverage - more corner cases in actions.c

This commit is contained in:
Aaron Traas 2017-06-20 12:06:49 -04:00 committed by Eric S. Raymond
parent e37f858b08
commit 53fd6348b9
6 changed files with 2967 additions and 2 deletions

69
tests/carrybird.chk Normal file
View file

@ -0,0 +1,69 @@
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 1071883378
Seed set to 1071883378
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.
> 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
You can catch the bird, but you cannot carry it.
You scored 32 out of a possible 430, using 7 turns.
You are obviously a rank amateur. Better luck next time.
To achieve the next higher rating, you need 14 more points.