Add some tests that increase test coverage to add cases.
Proof of concept. More could be added in illformed.log.
This commit is contained in:
parent
900f8d9df5
commit
4874fce5c7
2 changed files with 115 additions and 0 deletions
95
tests/illformed.chk
Normal file
95
tests/illformed.chk
Normal file
|
@ -0,0 +1,95 @@
|
|||
|
||||
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 1801426495
|
||||
Seed set to 1801426495
|
||||
|
||||
You're in front of building.
|
||||
|
||||
> in
|
||||
|
||||
You are inside a building, a well house for a large spring.
|
||||
|
||||
There are some keys on the ground here.
|
||||
|
||||
There is a shiny brass lamp nearby.
|
||||
|
||||
There is food here.
|
||||
|
||||
There is a bottle of water here.
|
||||
|
||||
> carry
|
||||
|
||||
Carry what?
|
||||
|
||||
> blast
|
||||
|
||||
Blasting requires dynamite.
|
||||
|
||||
> throw axe
|
||||
|
||||
I see no axe here.
|
||||
|
||||
> throw knife
|
||||
|
||||
I see no knife here.
|
||||
|
||||
> lock
|
||||
|
||||
There is nothing here with a lock!
|
||||
|
||||
> unlock
|
||||
|
||||
There is nothing here with a lock!
|
||||
|
||||
> throw
|
||||
|
||||
Throw what?
|
||||
|
||||
> unlock chain
|
||||
|
||||
I see no chain here.
|
||||
|
||||
> fill urn
|
||||
|
||||
I see no urn here.
|
||||
|
||||
> eat keys
|
||||
|
||||
Don't be ridiculous!
|
||||
|
||||
> drink blood
|
||||
|
||||
I see no blood here.
|
||||
|
||||
> quit
|
||||
|
||||
Do you really want to quit now?
|
||||
|
||||
> n
|
||||
|
||||
OK
|
||||
|
||||
> score
|
||||
|
||||
You have garnered 32 out of a possible 430 points, using 14 turns.
|
||||
|
||||
> quit
|
||||
|
||||
Do you really want to quit now?
|
||||
|
||||
> yes
|
||||
|
||||
OK
|
||||
|
||||
You scored 32 out of a possible 430, using 15 turns.
|
||||
|
||||
You are obviously a rank amateur. Better luck next time.
|
||||
|
||||
To achieve the next higher rating, you need 14 more points.
|
20
tests/illformed.log
Normal file
20
tests/illformed.log
Normal file
|
@ -0,0 +1,20 @@
|
|||
## Test for various cases not found in walkthroughs.
|
||||
n
|
||||
seed 1801426495
|
||||
in
|
||||
carry
|
||||
blast
|
||||
throw axe
|
||||
throw knife
|
||||
lock
|
||||
unlock
|
||||
throw
|
||||
unlock chain
|
||||
fill urn
|
||||
eat keys
|
||||
drink blood
|
||||
quit
|
||||
n
|
||||
score
|
||||
quit
|
||||
yes
|
Loading…
Add table
Add a link
Reference in a new issue