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
things. I cannot tell you where remote things are.
> nothing
OK
> in
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!
> walk
Where?
> fly
Though you flap your arms furiously, it is to no avail.
@ -288,7 +296,11 @@ Okay, "BOO".
> 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
@ -298,7 +310,7 @@ Do you really want to quit now?
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.

View file

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

View file

@ -36,17 +36,17 @@ OK
You're in front of building.
> s
> go s
You are in a valley in the forest beside a stream tumbling along a
rocky bed.
> s
> walk s
At your feet all the water of the stream splashes into a 2-inch slit
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
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.
> listen bird
I'm afraid I don't understand.
> eat bird
I think I just lost my appetite.
@ -141,7 +145,7 @@ have no bird seed.
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.

View file

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