Coverage -- version command

This commit is contained in:
Aaron Traas 2017-07-02 02:14:41 -04:00
parent 85f8334e17
commit 22a557efb1
3 changed files with 11 additions and 4 deletions

2
misc.c
View file

@ -187,7 +187,7 @@ void vspeak(const char* msg, va_list ap)
} else { } else {
long arg = va_arg(ap, long); long arg = va_arg(ap, long);
if (arg == -1) if (arg == -1)
arg = 0; arg = 0; // LCOV_EXCL_LINE - don't think we can get here.
i++; i++;
// Integer specifier. In order to accommodate the fact // Integer specifier. In order to accommodate the fact
// that PARMS can have both legitimate integers *and* // that PARMS can have both legitimate integers *and*

View file

@ -30,6 +30,12 @@ Seed set to 1801426495
You're in front of building. 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 > eat grate
Don't be ridiculous! Don't be ridiculous!
@ -506,7 +512,7 @@ Okay, "BOO".
> score > 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 > z
@ -514,7 +520,7 @@ OK
> score > 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 > quit keys
@ -528,7 +534,7 @@ Do you really want to quit now?
OK 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. You are obviously a rank amateur. Better luck next time.

View file

@ -2,6 +2,7 @@
foo foo
y y
seed 1801426495 seed 1801426495
version
eat grate eat grate
in in
in in