Improve test coverage.

This commit is contained in:
Eric S. Raymond 2017-06-16 15:27:25 -04:00
parent 59a558b762
commit 0d373a6b87
4 changed files with 29 additions and 9 deletions

View file

@ -67,6 +67,10 @@ things. I cannot tell you where remote things are.
I can only tell you what you see as you move about and manipulate I can only tell you what you see as you move about and manipulate
things. I cannot tell you where remote things are. things. I cannot tell you where remote things are.
> nothing
OK
> in > in
You are inside a building, a well house for a large spring. You are inside a building, a well house for a large spring.
@ -278,6 +282,10 @@ There is a bottle of water here.
Watch it! Watch it!
> walk
Where?
> fly > fly
Though you flap your arms furiously, it is to no avail. Though you flap your arms furiously, it is to no avail.
@ -288,7 +296,11 @@ Okay, "BOO".
> score > score
You have garnered 27 out of a possible 430 points, using 53 turns. You have garnered 27 out of a possible 430 points, using 55 turns.
> quit bottle
Huh?
> quit > quit
@ -298,7 +310,7 @@ Do you really want to quit now?
OK OK
You scored 27 out of a possible 430, using 54 turns. You scored 27 out of a possible 430, using 57 turns.
You are obviously a rank amateur. Better luck next time. You are obviously a rank amateur. Better luck next time.

View file

@ -9,6 +9,7 @@ eat
drink drink
find keys find keys
inven keys inven keys
nothing
in in
listen listen
keys keys
@ -53,8 +54,10 @@ look
news news
go back go back
fuck fuck
walk
fly fly
say boo say boo
score score
quit bottle
quit quit
yes yes

View file

@ -36,17 +36,17 @@ OK
You're in front of building. You're in front of building.
> s > go s
You are in a valley in the forest beside a stream tumbling along a You are in a valley in the forest beside a stream tumbling along a
rocky bed. rocky bed.
> s > walk s
At your feet all the water of the stream splashes into a 2-inch slit At your feet all the water of the stream splashes into a 2-inch slit
in the rock. Downstream the streambed is bare rock. in the rock. Downstream the streambed is bare rock.
> s > travel s
You are in a 20-foot depression floored with bare dirt. Set into the You are in a 20-foot depression floored with bare dirt. Set into the
dirt is a strong steel grate mounted in concrete. A dry streambed dirt is a strong steel grate mounted in concrete. A dry streambed
@ -127,6 +127,10 @@ from east and west sides of the chamber.
A cheerful little bird is sitting here singing. A cheerful little bird is sitting here singing.
> listen bird
I'm afraid I don't understand.
> eat bird > eat bird
I think I just lost my appetite. I think I just lost my appetite.
@ -141,7 +145,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 24 turns. You scored 32 out of a possible 430, using 25 turns.
You are obviously a rank amateur. Better luck next time. You are obviously a rank amateur. Better luck next time.

View file

@ -5,9 +5,9 @@ in
take lamp take lamp
take keys take keys
out out
s go s
s walk s
s travel s
attack grate attack grate
unlock grate unlock grate
lock grate lock grate
@ -22,6 +22,7 @@ on lamp
read read
w w
w w
listen bird
eat bird eat bird
feed bird feed bird
attack bird attack bird