Improve test coverage.

This commit is contained in:
Eric S. Raymond 2017-07-01 23:51:24 -04:00
parent a6954db376
commit 6c822610c5
4 changed files with 31 additions and 6 deletions

View file

@ -1731,12 +1731,18 @@ Oh dear, you seem to have gotten yourself killed. I might be able to
help you out, but I've never really done this before. Do you want me help you out, but I've never really done this before. Do you want me
to try to reincarnate you? to try to reincarnate you?
> n > y
OK All right. But don't blame me if something goes wr......
--- POOF!! ---
You are engulfed in a cloud of orange smoke. Coughing and gasping,
you emerge from the smoke and find....
You scored 247 out of a possible 430, using 287 turns. It is now pitch dark. If you proceed you will likely fall into a pit.
You scored 243 out of a possible 430, using 287 turns.
You may now consider yourself a "Seasoned Adventurer". You may now consider yourself a "Seasoned Adventurer".
To achieve the next higher rating, you need 4 more points. To achieve the next higher rating, you need 8 more points.

View file

@ -290,4 +290,4 @@ sw
free bear free bear
take bear take bear
sw sw
n y

View file

@ -2922,6 +2922,22 @@ Keys in main office."
The grate is locked. The grate is locked.
> xyzzy
Nothing happens.
You're at sw end.
The grate is locked.
> plugh
Nothing happens.
You're at sw end.
The grate is locked.
> read sign > read sign
"Treasure Vault. Keys in main office." "Treasure Vault. Keys in main office."
@ -2944,7 +2960,7 @@ There is a loud explosion, and a twenty-foot hole appears in the far
wall, burying the snakes in the rubble. A river of molten lava pours wall, burying the snakes in the rubble. A river of molten lava pours
in through the hole, destroying everything in its path, including you! in through the hole, destroying everything in its path, including you!
You scored 399 out of a possible 430, using 468 turns. You scored 399 out of a possible 430, using 470 turns.
Your score puts you in Master Adventurer Class B. Your score puts you in Master Adventurer Class B.

View file

@ -468,6 +468,9 @@ e
e e
e e
sw sw
# We want the xyzzy and plugh words to fail here
xyzzy
plugh
read sign read sign
take rod take rod
drop rod drop rod