Increase test coverage.

This commit is contained in:
Eric S. Raymond 2017-06-14 06:02:42 -04:00
parent a6657a53e9
commit 5d8275c147
4 changed files with 36 additions and 3 deletions

View file

@ -162,6 +162,14 @@ Thank you, it was delicious!
I see no blood here. I see no blood here.
> drink keys
Don't be ridiculous!
> light keys
I'm afraid I don't understand.
> brief > brief
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
@ -243,7 +251,7 @@ Okay, "BOO".
> score > score
You have garnered 32 out of a possible 430 points, using 47 turns. You have garnered 32 out of a possible 430 points, using 49 turns.
> quit > quit
@ -253,7 +261,7 @@ Do you really want to quit now?
OK OK
You scored 32 out of a possible 430, using 48 turns. You scored 32 out of a possible 430, using 50 turns.
You are obviously a rank amateur. Better luck next time. You are obviously a rank amateur. Better luck next time.

View file

@ -34,6 +34,8 @@ take keys
throw keys throw keys
eat food eat food
drink blood drink blood
drink keys
light keys
brief brief
on on
xyzzy xyzzy

View file

@ -1679,8 +1679,27 @@ The chain is now unlocked.
The chain is now locked. The chain is now locked.
> unlock chain
You scored 239 out of a possible 430, using 290 turns. The chain is now unlocked.
> take bear
OK
> inven
You are currently holding the following:
Set of keys
Brass lantern
Small bottle
Egg-sized emerald
Glistening pearl
You are being followed by a very large, tame bear.
You scored 239 out of a possible 430, using 293 turns.
You may now consider yourself a "Seasoned Adventurer". You may now consider yourself a "Seasoned Adventurer".

View file

@ -292,4 +292,8 @@ in
feed bear feed bear
take chain take chain
unlock chain unlock chain
# Also tests message from bear in inventory
lock chain lock chain
unlock chain
take bear
inven