From: Aaron Traas Date: Sun, 2 Jul 2017 06:14:41 +0000 (-0400) Subject: Coverage -- version command X-Git-Tag: takebird~123 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=22a557efb18b65c12a32a72570da21f33f7795de;p=open-adventure.git Coverage -- version command --- diff --git a/misc.c b/misc.c index b71969e..feebb4a 100644 --- a/misc.c +++ b/misc.c @@ -187,7 +187,7 @@ void vspeak(const char* msg, va_list ap) } else { long arg = va_arg(ap, long); if (arg == -1) - arg = 0; + arg = 0; // LCOV_EXCL_LINE - don't think we can get here. i++; // Integer specifier. In order to accommodate the fact // that PARMS can have both legitimate integers *and* diff --git a/tests/illformed.chk b/tests/illformed.chk index c1c6774..3996857 100644 --- a/tests/illformed.chk +++ b/tests/illformed.chk @@ -30,6 +30,12 @@ Seed set to 1801426495 You're in front of building. +> version + +There is a puff of orange smoke; within it, fiery runes spell out: + + Open Adventure 1.1 - http://www.catb.org/esr/open-adventure/ + > eat grate Don't be ridiculous! @@ -506,7 +512,7 @@ Okay, "BOO". > score -You have garnered 27 out of a possible 430 points, using 97 turns. +You have garnered 27 out of a possible 430 points, using 98 turns. > z @@ -514,7 +520,7 @@ OK > score -You have garnered 27 out of a possible 430 points, using 99 turns. +You have garnered 27 out of a possible 430 points, using 100 turns. > quit keys @@ -528,7 +534,7 @@ Do you really want to quit now? OK -You scored 27 out of a possible 430, using 101 turns. +You scored 27 out of a possible 430, using 102 turns. You are obviously a rank amateur. Better luck next time. diff --git a/tests/illformed.log b/tests/illformed.log index 286b6bd..81e542b 100644 --- a/tests/illformed.log +++ b/tests/illformed.log @@ -2,6 +2,7 @@ foo y seed 1801426495 +version eat grate in in