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. You can't carry anything more. You'll have to drop something first.
> pour bottle
Bottl what?
> n > n
You're in cavern with waterfall. 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. 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 The bear eagerly wolfs down your food, after which he seems to calm
down considerably and even becomes rather friendly. down considerably and even becomes rather friendly.
@ -1699,7 +1703,7 @@ Glistening pearl
You are being followed by a very large, tame bear. 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". You may now consider yourself a "Seasoned Adventurer".

View file

@ -276,7 +276,9 @@ climb
w w
get eggs get eggs
n n
# Test for "Ground wet" message
take bottle take bottle
pour bottle
n n
w w
d d
@ -289,7 +291,7 @@ ne
barren barren
in in
throw axe throw axe
feed bear throw food
take chain take chain
unlock chain unlock chain
# Also tests message from bear in inventory # 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 what?
> read keys
I see no keys here.
> on lamp > on lamp
Your lamp is now on. Your lamp is now on.
@ -137,7 +141,7 @@ have no bird seed.
The little bird is now dead. Its body disappears. 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. You are obviously a rank amateur. Better luck next time.

View file

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