From: Eric S. Raymond Date: Sun, 2 Jul 2017 03:51:24 +0000 (-0400) Subject: Improve test coverage. X-Git-Tag: takebird~128 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=6c822610c5830654cd869953d452e21084f6b9d2;p=open-adventure.git Improve test coverage. --- diff --git a/tests/bearbridge.chk b/tests/bearbridge.chk index 625849e..28ec7c7 100644 --- a/tests/bearbridge.chk +++ b/tests/bearbridge.chk @@ -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 to try to reincarnate you? -> n +> y + +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.... + +It is now pitch dark. If you proceed you will likely fall into a pit. -OK -You scored 247 out of a possible 430, using 287 turns. +You scored 243 out of a possible 430, using 287 turns. 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. diff --git a/tests/bearbridge.log b/tests/bearbridge.log index 25d1f48..6ee6670 100644 --- a/tests/bearbridge.log +++ b/tests/bearbridge.log @@ -290,4 +290,4 @@ sw free bear take bear sw -n +y diff --git a/tests/defeat.chk b/tests/defeat.chk index c1ad5a3..3df0818 100644 --- a/tests/defeat.chk +++ b/tests/defeat.chk @@ -2922,6 +2922,22 @@ Keys in main office." 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 "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 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. diff --git a/tests/defeat.log b/tests/defeat.log index f8d47ab..5f0af2a 100644 --- a/tests/defeat.log +++ b/tests/defeat.log @@ -468,6 +468,9 @@ e e e sw +# We want the xyzzy and plugh words to fail here +xyzzy +plugh read sign take rod drop rod