Create a cheater to test strange save/resume cases.
Patch due to Aaron Traas, but needed modification because of code drift since submission.
This commit is contained in:
parent
5581175840
commit
d6cb6f0d8d
10 changed files with 124 additions and 10 deletions
|
@ -37,6 +37,8 @@ buildregress:
|
|||
done; \
|
||||
rm -f scratch.tmp
|
||||
regress:
|
||||
$(ECHO) -n "Generate cheat file: "
|
||||
../cheat
|
||||
@for file in $(TESTLOADS); do \
|
||||
$(ECHO) -n " $${file} "; grep '##' $${file}.log || echo ' ## (no description)'; \
|
||||
OPTS=`sed -n /#options:/s///p <$${file}.log`; \
|
||||
|
|
24
tests/cheatresume.chk
Normal file
24
tests/cheatresume.chk
Normal file
|
@ -0,0 +1,24 @@
|
|||
|
||||
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
|
||||
|
||||
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.
|
||||
|
||||
|
||||
Now let's see you do it without suspending in mid-Adventure.
|
||||
|
||||
You scored 10031 out of a possible 430, using 0 turn.
|
||||
|
||||
You just went off my scale!!
|
||||
|
||||
To achieve the next higher rating would be a neat trick!
|
||||
Congratulations!!
|
4
tests/cheatresume.log
Normal file
4
tests/cheatresume.log
Normal file
|
@ -0,0 +1,4 @@
|
|||
## Resume from absurd save file with numdie = -1000
|
||||
n
|
||||
resume
|
||||
cheat_numdie.adv
|
Loading…
Add table
Add a link
Reference in a new issue