Back up to 100% coverage.
This commit is contained in:
parent
e8a627f964
commit
30f13c6c25
3 changed files with 24 additions and 8 deletions
5
misc.c
5
misc.c
|
@ -394,9 +394,10 @@ static bool is_valid_int(const char *str)
|
||||||
if (*str == '-')
|
if (*str == '-')
|
||||||
++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.
|
// Check for non-digit chars in the rest of the stirng.
|
||||||
while (*str)
|
while (*str)
|
||||||
|
|
|
@ -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?
|
||||||
|
|
||||||
You are obviously a rank amateur. Better luck next time.
|
> 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.
|
||||||
|
|
||||||
|
Do you want the hint?
|
||||||
|
|
||||||
To achieve the next higher rating, you need 19 more points.
|
|
||||||
|
|
|
@ -133,5 +133,7 @@ s
|
||||||
down
|
down
|
||||||
s
|
s
|
||||||
in
|
in
|
||||||
|
seed -123
|
||||||
|
no
|
||||||
quit
|
quit
|
||||||
yes
|
yes
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue