From: Eric S. Raymond Date: Wed, 13 Apr 2022 01:51:37 +0000 (-0400) Subject: Another test coverage improvement. X-Git-Tag: 1.11~21 X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=commitdiff_plain;h=829e55f99df496aa04f053817e9311b3b54c2933 Another test coverage improvement. --- diff --git a/tests/defeat.chk b/tests/defeat.chk index 055ea6a..4f4cf80 100644 --- a/tests/defeat.chk +++ b/tests/defeat.chk @@ -2932,6 +2932,20 @@ OK Interesting. There seems to be something written on the underside of the oyster. +> read oyster + +Hmmm, this looks like a clue, which means it'll cost you 10 points to +read it. Should I go ahead and read it anyway? + +> y + +It says, "There is a way out of this place. Do you need any more +information to escape? Sorry, but this initial hint is all you get." + +> read oyster + +It says the same thing it did before. Hm, maybe it's a pun? + > drop oyster OK @@ -3022,8 +3036,8 @@ 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 480 turns. +You scored 389 out of a possible 430, using 482 turns. Your score puts you in Master Adventurer Class B. -To achieve the next higher rating, you need 12 more points. +To achieve the next higher rating, you need 22 more points. diff --git a/tests/defeat.log b/tests/defeat.log index 8d90d68..c42430a 100644 --- a/tests/defeat.log +++ b/tests/defeat.log @@ -472,8 +472,11 @@ e e e e -# Expecting failure here take oyster +# Test both cases (before and after hint) of reading oyster +read oyster +y +read oyster drop oyster open oyster sw