More test coverage.

This commit is contained in:
Eric S. Raymond 2017-06-13 10:57:03 -04:00
parent 897fe621ec
commit 95e8752252
4 changed files with 40 additions and 4 deletions

View file

@ -123,6 +123,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.
> eat bird
I think I just lost my appetite.
> feed bird > feed bird
It's not hungry (it's merely pinin' for the fjords). Besides, you It's not hungry (it's merely pinin' for the fjords). Besides, you
@ -133,7 +137,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 22 turns. You scored 32 out of a possible 430, using 23 turns.
You are obviously a rank amateur. Better luck next time. You are obviously a rank amateur. Better luck next time.

View file

@ -21,5 +21,6 @@ on lamp
read read
w w
w w
eat bird
feed bird feed bird
attack bird attack bird

View file

@ -12,6 +12,26 @@ Seed set to 2099333241
You're in front of building. You're in front of building.
> in
You are inside a building, a well house for a large spring.
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.
> eat
Thank you, it was delicious!
> out
You're in front of building.
> n > n
You are wandering aimlessly through the forest. You are wandering aimlessly through the forest.
@ -101,9 +121,9 @@ You are wandering aimlessly through the forest.
You are wandering aimlessly through the forest. You are wandering aimlessly through the forest.
> e > drink
You are wandering aimlessly through the forest. Drink what?
> e > e
@ -161,6 +181,12 @@ Please answer the question.
Would you like to be shown out of the forest? Would you like to be shown out of the forest?
> e
Please answer the question.
Would you like to be shown out of the forest?
> y > y
I am prepared to give you a hint, but it will cost you 2 points. I am prepared to give you a hint, but it will cost you 2 points.
@ -173,7 +199,7 @@ Go east ten times. If that doesn't get you out, then go south, then
west twice, then south. west twice, then south.
You scored 30 out of a possible 430, using 34 turns. You scored 30 out of a possible 430, using 37 turns.
You are obviously a rank amateur. Better luck next time. You are obviously a rank amateur. Better luck next time.

View file

@ -1,6 +1,10 @@
## Test hinting logic - elicit forest hint ## Test hinting logic - elicit forest hint
# Also some tests of intransitive-verb cases
n n
seed 2099333241 seed 2099333241
in
eat
out
n n
e e
n n
@ -22,6 +26,7 @@ e
e e
e e
e e
drink
e e
e e
e e