Back up to 100% coverage.
authorAaron Traas <aaron@traas.org>
Fri, 21 Jul 2017 21:22:03 +0000 (17:22 -0400)
committerAaron Traas <aaron@traas.org>
Fri, 21 Jul 2017 21:22:03 +0000 (17:22 -0400)
misc.c
tests/illformed.chk
tests/illformed.log

diff --git a/misc.c b/misc.c
index e64cad077d8d94c454bdf07db19b6e4fb99cad2b..e6d31bf232b18b64d69272bbb5c2b5d68a7a5f4f 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -394,9 +394,10 @@ static bool is_valid_int(const char *str)
     if (*str == '-')
         ++str;
 
     if (*str == '-')
         ++str;
 
-    // Handle empty string or just "-"
+    // Handle empty string or just "-". Should never reach this 
+    // point, because this is only used with transitive verbs.
     if (!*str)
     if (!*str)
-        return false;
+        return false; // LCOV_EXCL_LINE
 
     // Check for non-digit chars in the rest of the stirng.
     while (*str)
 
     // Check for non-digit chars in the rest of the stirng.
     while (*str)
index 35463958cc60d8aa4ab9b581951883308f9f367a..479da269efaf7f2c98cd3119cc148772ebdd6fe7 100644 (file)
@@ -659,16 +659,29 @@ You're outside grate.
 
 The grate is locked.
 
 
 The grate is locked.
 
-> quit
+> seed -123
 
 
-Do you really want to quit now?
+Seed set to 4294967173
 
 
-> yes
+You're outside grate.
+
+The grate is locked.
+
+> no
 
 OK
 
 
 OK
 
-You scored 27 out of a possible 430, using 125 turns.
+Are you trying to get into the cave?
+
+> quit
+
+Please answer the question.
+
+Are you trying to get into the cave?
+
+> yes
+
+I am prepared to give you a hint, but it will cost you 2 points.
 
 
-You are obviously a rank amateur.  Better luck next time.
+Do you want the hint?
 
 
-To achieve the next higher rating, you need 19 more points.
index f3b781fc418604af08a9fe95cb82a2c26e1046a8..b29a08d34e04dd5960b002bdd3787f6ca37d51fe 100644 (file)
@@ -133,5 +133,7 @@ s
 down
 s
 in
 down
 s
 in
+seed -123
+no
 quit
 yes
 quit
 yes