Save/resume fail test coverage -- test works in Docker now
This commit is contained in:
parent
a8a7c50691
commit
18a9be501f
4 changed files with 79 additions and 0 deletions
33
tests/resumefail.chk
Normal file
33
tests/resumefail.chk
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
|
||||||
|
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
|
||||||
|
Can't open file /badfilename, try again.
|
||||||
|
|
||||||
|
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.
|
6
tests/resumefail.log
Normal file
6
tests/resumefail.log
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
## Resume from invalid filename
|
||||||
|
n
|
||||||
|
seed 1240742801
|
||||||
|
resume
|
||||||
|
y
|
||||||
|
/badfilename
|
34
tests/savefail.chk
Normal file
34
tests/savefail.chk
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
|
||||||
|
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
|
||||||
|
Can't open file /, try again.
|
||||||
|
|
||||||
|
You're in front of building.
|
||||||
|
|
||||||
|
|
||||||
|
You scored 27 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 19 more points.
|
6
tests/savefail.log
Normal file
6
tests/savefail.log
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
## Save right after starting to invalid filename
|
||||||
|
n
|
||||||
|
seed 1240742801
|
||||||
|
save
|
||||||
|
y
|
||||||
|
/
|
Loading…
Add table
Add a link
Reference in a new issue