Add simple tests of save and resume.
This commit is contained in:
parent
acc08b8a5c
commit
990be32ac6
4 changed files with 67 additions and 0 deletions
27
tests/saveresume.1.chk
Normal file
27
tests/saveresume.1.chk
Normal file
|
@ -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".
|
7
tests/saveresume.1.log
Normal file
7
tests/saveresume.1.log
Normal file
|
@ -0,0 +1,7 @@
|
|||
## Save right after starting
|
||||
n
|
||||
seed 1240742801
|
||||
save
|
||||
y
|
||||
saveresume
|
||||
y
|
27
tests/saveresume.2.chk
Normal file
27
tests/saveresume.2.chk
Normal file
|
@ -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.
|
6
tests/saveresume.2.log
Normal file
6
tests/saveresume.2.log
Normal file
|
@ -0,0 +1,6 @@
|
|||
## Resume and then quit
|
||||
n
|
||||
resume
|
||||
saveresume
|
||||
quit
|
||||
yes
|
Loading…
Add table
Add a link
Reference in a new issue