From: Jason S. Ninneman Date: Tue, 6 Jun 2017 02:20:39 +0000 (-0700) Subject: Add simple tests of save and resume. X-Git-Tag: 1.1~619 X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=commitdiff_plain;h=990be32ac6862bbc788f9efa8c4dbfcd9b0955c3 Add simple tests of save and resume. --- 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