Improve test coverage.

This commit is contained in:
Eric S. Raymond 2017-06-13 13:36:27 -04:00
parent e07cedf332
commit 7493b26e6c
4 changed files with 91 additions and 16 deletions

View file

@ -493,6 +493,10 @@ I'm afraid I don't understand.
You fool, dwarves eat only coal! Now you've made him *REALLY* mad!!
> carry
Carry what?
> carry dwarf
You can't be serious!
@ -506,7 +510,7 @@ With what? Your bare hands?
Feed what?
You scored 103 out of a possible 430, using 86 turns.
You scored 103 out of a possible 430, using 87 turns.
Your score qualifies you as a novice class adventurer.

View file

@ -86,6 +86,7 @@ s
# The actual test - rest was just setup.
read dwarf
feed dwarf
carry
carry dwarf
attack
feed

View file

@ -121,9 +121,49 @@ You are wandering aimlessly through the forest.
You are wandering aimlessly through the forest.
> drink
> drop
Drink what?
Drop what?
> say
Okay, "SAY".
> wave
Wave what?
> calm
Calm what?
> walk
Where?
> pour
You aren't carrying it!
> rub
Rub what?
> find
Find what?
> fill
Fill what?
> break
Break what?
> wake
Wake what?
> e
@ -133,45 +173,65 @@ You are wandering aimlessly through the forest.
You are wandering aimlessly through the forest.
> e
You are wandering aimlessly through the forest.
Would you like to be shown out of the forest?
> e
You are wandering aimlessly through the forest.
Please answer the question.
Would you like to be shown out of the forest?
> e
You are wandering aimlessly through the forest.
Please answer the question.
Would you like to be shown out of the forest?
> e
You are wandering aimlessly through the forest.
Please answer the question.
Would you like to be shown out of the forest?
> e
You are wandering aimlessly through the forest.
Please answer the question.
Would you like to be shown out of the forest?
> e
You are wandering aimlessly through the forest.
Please answer the question.
Would you like to be shown out of the forest?
> e
You are wandering aimlessly through the forest.
Please answer the question.
Would you like to be shown out of the forest?
> e
You are wandering aimlessly through the forest.
Please answer the question.
Would you like to be shown out of the forest?
> e
You are wandering aimlessly through the forest.
Please answer the question.
Would you like to be shown out of the forest?
> e
You are wandering aimlessly through the forest.
Please answer the question.
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?

View file

@ -26,7 +26,17 @@ e
e
e
e
drink
drop
say
wave
calm
walk
pour
rub
find
fill
break
wake
e
e
e