Should have 100% coverage on saveresume.c now

This commit is contained in:
Aaron Traas 2017-06-19 13:23:24 -04:00 committed by Eric S. Raymond
parent ef100a3102
commit 43247f995b
2 changed files with 42 additions and 0 deletions

36
tests/resumefail2.chk Normal file
View file

@ -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.

6
tests/resumefail2.log Normal file
View file

@ -0,0 +1,6 @@
## Resume input from /dev/random, inducing a version mismatch error
n
seed 1240742801
resume
y
/dev/random