Improve test coverage.

This commit is contained in:
Eric S. Raymond 2017-06-18 11:14:44 -04:00
parent f862f9f1d5
commit 23cc7b45be
4 changed files with 29 additions and 3 deletions

View file

@ -156,6 +156,10 @@ OK
The bottle of water is now empty.
> fill bottle
Your bottle is now full of water.
> throw axe
I see no axe here.
@ -261,6 +265,14 @@ I'm afraid I don't understand.
What do you want to do with the grate?
> pour bottle
Your bottle is empty and the ground is wet.
> fill bottle
Your bottle is now full of water.
> building
I don't know how to apply that word here.
@ -275,6 +287,10 @@ There is a shiny brass lamp nearby.
Your lamp is now on.
> pour bottle
Your bottle is empty and the ground is wet.
> xyzzy
>>Foof!<<
@ -349,7 +365,7 @@ Okay, "BOO".
> score
You have garnered 27 out of a possible 430 points, using 68 turns.
You have garnered 27 out of a possible 430 points, using 72 turns.
> quit keys
@ -363,7 +379,7 @@ Do you really want to quit now?
OK
You scored 27 out of a possible 430, using 70 turns.
You scored 27 out of a possible 430, using 74 turns.
You are obviously a rank amateur. Better luck next time.

View file

@ -29,6 +29,7 @@ carry
blast
take bottle
drink water
fill bottle
throw axe
throw knife
lock
@ -55,8 +56,11 @@ brief
frob grate
read grate
grate
pour bottle
fill bottle
building
on
pour bottle
xyzzy
take rod
wave rod

View file

@ -1985,8 +1985,13 @@ I'm afraid I don't understand.
The urn is now dark.
> fly
You scored 267 out of a possible 430, using 333 turns.
If you mean to use the persian rug, it does not appear inclined to
cooperate.
You scored 267 out of a possible 430, using 334 turns.
You have reached "Junior Master" status.

View file

@ -336,3 +336,4 @@ light urn
fill urn
read urn
extinguish urn
fly