From 990be32ac6862bbc788f9efa8c4dbfcd9b0955c3 Mon Sep 17 00:00:00 2001 From: "Jason S. Ninneman" Date: Mon, 5 Jun 2017 19:20:39 -0700 Subject: [PATCH] Add simple tests of save and resume. --- tests/saveresume.1.chk | 27 +++++++++++++++++++++++++++ tests/saveresume.1.log | 7 +++++++ tests/saveresume.2.chk | 27 +++++++++++++++++++++++++++ tests/saveresume.2.log | 6 ++++++ 4 files changed, 67 insertions(+) create mode 100644 tests/saveresume.1.chk create mode 100644 tests/saveresume.1.log create mode 100644 tests/saveresume.2.chk create mode 100644 tests/saveresume.2.log diff --git a/tests/saveresume.1.chk b/tests/saveresume.1.chk new file mode 100644 index 0000000..ee9f693 --- /dev/null +++ b/tests/saveresume.1.chk @@ -0,0 +1,27 @@ + +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. + +> save + +I can suspend your Adventure for you so that you can resume later, but +it will cost you 5 points. + +Is this acceptable? + +> y + +OK + +File name: +To resume your Adventure, start a new game and then say "RESUME". diff --git a/tests/saveresume.1.log b/tests/saveresume.1.log new file mode 100644 index 0000000..36de492 --- /dev/null +++ b/tests/saveresume.1.log @@ -0,0 +1,7 @@ +## Save right after starting +n +seed 1240742801 +save +y +saveresume +y diff --git a/tests/saveresume.2.chk b/tests/saveresume.2.chk new file mode 100644 index 0000000..d76d314 --- /dev/null +++ b/tests/saveresume.2.chk @@ -0,0 +1,27 @@ + +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. + +> resume + +File name: +You're in front of building. + +> quit + +Do you really want to quit now? + +> yes + +OK + +You scored 27 out of a possible 430, using 2 turns. + +You are obviously a rank amateur. Better luck next time. + +To achieve the next higher rating, you need 19 more points. diff --git a/tests/saveresume.2.log b/tests/saveresume.2.log new file mode 100644 index 0000000..90d4d9a --- /dev/null +++ b/tests/saveresume.2.log @@ -0,0 +1,6 @@ +## Resume and then quit +n +resume +saveresume +quit +yes -- 2.31.1