Test coverage - failure to fill

This commit is contained in:
Aaron Traas 2017-06-19 16:07:35 -04:00 committed by Eric S. Raymond
parent 08c0524ee3
commit 7ae0782b25
3 changed files with 68 additions and 1 deletions

57
tests/fillfail.chk Normal file
View file

@ -0,0 +1,57 @@
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.
> 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.
> carry lamp
OK
> carry bottle
OK
> fill bottle
Your bottle is already full.
> drink
The bottle of water is now empty.
> xyzzy
>>Foof!<<
It is now pitch dark. If you proceed you will likely fall into a pit.
> fill lamp
You can't fill that.
> fill bottle
There is nothing here with which to fill the bottle.
You scored 32 out of a possible 430, using 8 turns.
You are obviously a rank amateur. Better luck next time.
To achieve the next higher rating, you need 14 more points.

10
tests/fillfail.log Normal file
View file

@ -0,0 +1,10 @@
## Attempt to fill lamp, attempt to fill bottle with no source
n
in
carry lamp
carry bottle
fill bottle
drink
xyzzy
fill lamp
fill bottle

View file

@ -1,4 +1,4 @@
## Drink unknown
## Carry when only one object is present
n
in
carry lamp