Improve test coverage.

This commit is contained in:
Eric S. Raymond 2017-06-16 09:31:37 -04:00
parent efe898d783
commit 349c51793c
4 changed files with 15 additions and 4 deletions

View file

@ -1592,6 +1592,10 @@ The way north leads through a massive, rusty, iron door.
You can't carry anything more. You'll have to drop something first.
> pour bottle
Bottl what?
> n
You're in cavern with waterfall.
@ -1663,7 +1667,7 @@ The bear is locked to the wall with a golden chain!
The axe misses and lands near the bear where you can't get at it.
> feed bear
> throw food
The bear eagerly wolfs down your food, after which he seems to calm
down considerably and even becomes rather friendly.
@ -1699,7 +1703,7 @@ Glistening pearl
You are being followed by a very large, tame bear.
You scored 225 out of a possible 430, using 293 turns.
You scored 225 out of a possible 430, using 294 turns.
You may now consider yourself a "Seasoned Adventurer".

View file

@ -276,7 +276,9 @@ climb
w
get eggs
n
# Test for "Ground wet" message
take bottle
pour bottle
n
w
d
@ -289,7 +291,7 @@ ne
barren
in
throw axe
feed bear
throw food
take chain
unlock chain
# Also tests message from bear in inventory

View file

@ -96,6 +96,10 @@ It is now pitch dark. If you proceed you will likely fall into a pit.
Read what?
> read keys
I see no keys here.
> on lamp
Your lamp is now on.
@ -137,7 +141,7 @@ have no bird seed.
The little bird is now dead. Its body disappears.
You scored 32 out of a possible 430, using 23 turns.
You scored 32 out of a possible 430, using 24 turns.
You are obviously a rank amateur. Better luck next time.

View file

@ -17,6 +17,7 @@ w
take cage
w
read
read keys
on lamp
read
w