From: Aaron Traas Date: Mon, 19 Jun 2017 17:23:24 +0000 (-0400) Subject: Should have 100% coverage on saveresume.c now X-Git-Tag: 1.1~210 X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=commitdiff_plain;h=43247f995be39a5f40dd3bbcac7b6d633089fa39 Should have 100% coverage on saveresume.c now --- diff --git a/tests/resumefail2.chk b/tests/resumefail2.chk new file mode 100644 index 0000000..f1026b5 --- /dev/null +++ b/tests/resumefail2.chk @@ -0,0 +1,36 @@ + +Welcome to Adventure!! Would you like instructions? + +> n + +You are standing at the end of a road before a small brick building. +Around you is a forest. A small stream flows out of the building and +down a gully. + +> seed 1240742801 +Seed set to 1240742801 + +You're in front of building. + +> resume + +To resume an earlier Adventure, you must abandon the current one. + +Is this acceptable? + +> y + +OK + +I'm sorry, but that Adventure was begun using Version-166209188682739509.-5 of the +program, and this is Version2.6. You must find the other version +in order to resume that Adventure. + +You're in front of building. + + +You scored 32 out of a possible 430, using 1 turn. + +You are obviously a rank amateur. Better luck next time. + +To achieve the next higher rating, you need 14 more points. diff --git a/tests/resumefail2.log b/tests/resumefail2.log new file mode 100644 index 0000000..cd0d989 --- /dev/null +++ b/tests/resumefail2.log @@ -0,0 +1,6 @@ +## Resume input from /dev/random, inducing a version mismatch error +n +seed 1240742801 +resume +y +/dev/random \ No newline at end of file