Improve test coverage.

This commit is contained in:
Eric S. Raymond 2017-06-16 15:40:46 -04:00
parent 0d373a6b87
commit 851f90cdf7
5 changed files with 19 additions and 9 deletions

View file

@ -261,6 +261,10 @@ The dragon is sprawled out on a persian rug!!
The little bird attacks the green dragon, and in an astounding flurry
gets burnt to a cinder. The ashes blow away.
> extinguish dragon
It is beyond your power to do that.
> kill dragon
With what? Your bare hands?
@ -276,7 +280,7 @@ A huge green fierce dragon bars the way!
The dragon is sprawled out on a persian rug!!
You scored 77 out of a possible 430, using 47 turns.
You scored 77 out of a possible 430, using 48 turns.
Your score qualifies you as a novice class adventurer.

View file

@ -47,5 +47,6 @@ n
sw
w
drop bird
extinguish dragon
kill dragon
n

View file

@ -167,6 +167,10 @@ Don't be ridiculous!
OK
> feed keys
I'm game. Would you care to explain how?
> throw keys
OK
@ -296,7 +300,7 @@ Okay, "BOO".
> score
You have garnered 27 out of a possible 430 points, using 55 turns.
You have garnered 27 out of a possible 430 points, using 56 turns.
> quit bottle
@ -310,7 +314,7 @@ Do you really want to quit now?
OK
You scored 27 out of a possible 430, using 57 turns.
You scored 27 out of a possible 430, using 58 turns.
You are obviously a rank amateur. Better luck next time.

View file

@ -32,6 +32,7 @@ off keys
break keys
wake keys
take keys
feed keys
throw keys
eat food
drink blood