Improve test coverage.

This commit is contained in:
Eric S. Raymond 2017-06-18 11:36:03 -04:00
parent 23cc7b45be
commit 957c78d0c2
8 changed files with 31 additions and 8 deletions

View file

@ -2923,7 +2923,7 @@ OK
You're at ne end. You're at ne end.
> blast > blast rod
There is a loud explosion, and a twenty-foot hole appears in the far There is a loud explosion, and a twenty-foot hole appears in the far
wall, burying the snakes in the rubble. A river of molten lava pours wall, burying the snakes in the rubble. A river of molten lava pours

View file

@ -469,4 +469,4 @@ sw
take rod take rod
drop rod drop rod
ne ne
blast blast rod

View file

@ -228,10 +228,26 @@ I'm game. Would you care to explain how?
I'm game. Would you care to explain how? I'm game. Would you care to explain how?
> pour keys
You can't pour that.
> throw keys > throw keys
OK OK
> foo up
There is no way to go that direction.
You're inside building.
There are some keys on the ground here.
There is a shiny brass lamp nearby.
There is food here.
> eat food > eat food
Thank you, it was delicious! Thank you, it was delicious!
@ -365,7 +381,7 @@ Okay, "BOO".
> score > score
You have garnered 27 out of a possible 430 points, using 72 turns. You have garnered 27 out of a possible 430 points, using 74 turns.
> quit keys > quit keys
@ -379,7 +395,7 @@ Do you really want to quit now?
OK OK
You scored 27 out of a possible 430, using 74 turns. You scored 27 out of a possible 430, using 76 turns.
You are obviously a rank amateur. Better luck next time. You are obviously a rank amateur. Better luck next time.

View file

@ -47,7 +47,9 @@ wake keys
take keys take keys
feed keys feed keys
fly keys fly keys
pour keys
throw keys throw keys
foo up
eat food eat food
drink blood drink blood
drink keys drink keys

View file

@ -28,7 +28,7 @@ There is a bottle of water here.
OK OK
> xyzzy > say xyzzy
>>Foof!<< >>Foof!<<

View file

@ -3,7 +3,7 @@ n
seed 1071883378 seed 1071883378
in in
take lamp take lamp
xyzzy say xyzzy
take rod take rod
e e
take cage take cage

View file

@ -1965,6 +1965,10 @@ down, but a small ledge can be seen to the west across the chasm.
A small urn is embedded in the rock. A small urn is embedded in the rock.
> light urn
The urn is empty and will not light.
> fill urn > fill urn
Your bottle is now empty and the urn is full of oil. Your bottle is now empty and the urn is full of oil.
@ -1991,7 +1995,7 @@ If you mean to use the persian rug, it does not appear inclined to
cooperate. cooperate.
You scored 267 out of a possible 430, using 334 turns. You scored 267 out of a possible 430, using 335 turns.
You have reached "Junior Master" status. You have reached "Junior Master" status.

View file

@ -330,9 +330,10 @@ w
n n
n n
n n
# Everything to here copied from endgame428
light urn
fill urn fill urn
light urn light urn
# Everything to here copied from endgame428
fill urn fill urn
read urn read urn
extinguish urn extinguish urn