From 43247f995be39a5f40dd3bbcac7b6d633089fa39 Mon Sep 17 00:00:00 2001 From: Aaron Traas Date: Mon, 19 Jun 2017 13:23:24 -0400 Subject: [PATCH] Should have 100% coverage on saveresume.c now --- tests/resumefail2.chk | 36 ++++++++++++++++++++++++++++++++++++ tests/resumefail2.log | 6 ++++++ 2 files changed, 42 insertions(+) create mode 100644 tests/resumefail2.chk create mode 100644 tests/resumefail2.log 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 -- 2.31.1