Test coverage improvement.

This commit is contained in:
Eric S. Raymond 2017-06-04 07:30:21 -04:00
parent 8da6c9e4de
commit fa63a56f18
2 changed files with 42 additions and 11 deletions

View file

@ -18,6 +18,16 @@ Seed set to 1801426495
You're in front of building. You're in front of building.
> listen
The stream is gurgling placidly.
> forward
I am unsure how you are facing. Use compass points or nearby objects.
You're in front of building.
> eat > eat
Eat what? Eat what?
@ -44,10 +54,18 @@ There is food here.
There is a bottle of water here. There is a bottle of water here.
> listen
The stream is gurgling placidly.
> find keys > find keys
I believe what you want is right here with you. I believe what you want is right here with you.
> unlock keys
You can't unlock the keys.
> find foo > find foo
Nothing happens. Nothing happens.
@ -105,6 +123,20 @@ I see no blood here.
Okay, from now on I'll only describe a place in full the first time Okay, from now on I'll only describe a place in full the first time
you come to it. To get the full description, say "look". you come to it. To get the full description, say "look".
> on
Your lamp is now on.
> xyzzy
>>Foof!<<
It is now pitch dark. If you proceed you will likely fall into a pit.
> listen
All is silent.
> quit > quit
Do you really want to quit now? Do you really want to quit now?
@ -119,15 +151,7 @@ Read what?
> look > look
You are inside a building, a well house for a large spring. It is now pitch dark. If you proceed you will likely fall into a pit.
There are some keys on the ground here.
There is a shiny brass lamp nearby.
There is food here.
There is a bottle of water here.
> news > news
@ -143,7 +167,7 @@ game. Saved games are now stored in much smaller files than before.
> score > score
You have garnered 32 out of a possible 430 points, using 24 turns. You have garnered 32 out of a possible 430 points, using 31 turns.
> quit > quit
@ -153,7 +177,7 @@ Do you really want to quit now?
OK OK
You scored 32 out of a possible 430, using 25 turns. You scored 32 out of a possible 430, using 32 turns.
You are obviously a rank amateur. Better luck next time. You are obviously a rank amateur. Better luck next time.

View file

@ -2,11 +2,15 @@
foo foo
n n
seed 1801426495 seed 1801426495
listen
forward
eat eat
drink drink
find keys find keys
in in
listen
find keys find keys
unlock keys
find foo find foo
find bar find bar
carry carry
@ -21,6 +25,9 @@ fill urn
eat keys eat keys
drink blood drink blood
brief brief
on
xyzzy
listen
quit quit
n n
read read