Improve test coverage.
authorEric S. Raymond <esr@thyrsus.com>
Sun, 2 Jul 2017 03:51:24 +0000 (23:51 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Sun, 2 Jul 2017 03:51:24 +0000 (23:51 -0400)
tests/bearbridge.chk
tests/bearbridge.log
tests/defeat.chk
tests/defeat.log

index 625849e88d0bced1b72d72ec013907be0c744891..28ec7c794a9ceb7445e737d68be9fb4a808f76fe 100644 (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
 to try to reincarnate you?
 
 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".
 
 
 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.
index 25d1f48f7c745422f7ec6d054e9dd0286674a75a..6ee6670c4ae54db4b62a9da4340c8867d09571d6 100644 (file)
@@ -290,4 +290,4 @@ sw
 free bear
 take bear
 sw
 free bear
 take bear
 sw
-n
+y
index c1ad5a3414692edfa2295a95f280d87ec888312c..3df0818a22b6f7773fc375b0bac74f9f3251bb4b 100644 (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
 
 "Treasure Vault.  Keys in main office."
 > 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!
 
 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.
 
 
 Your score puts you in Master Adventurer Class B.
 
index f8d47ab2fbacab60510bf7eaa0994c955afa1eb3..5f0af2a0bf1cdba2f86762f4a3bda36139355fc6 100644 (file)
@@ -468,6 +468,9 @@ e
 e
 e
 sw
 e
 e
 sw
+# We want the xyzzy and plugh words to fail here
+xyzzy
+plugh
 read sign
 take rod
 drop rod
 read sign
 take rod
 drop rod