Test coverage - add lots more coverage from actions.c
This commit is contained in:
parent
78eee015e3
commit
d0a868bd4a
19 changed files with 234 additions and 973 deletions
|
@ -1609,11 +1609,24 @@ There is a ferocious cave bear eying you from the far end of the room!
|
||||||
|
|
||||||
The bear is locked to the wall with a golden chain!
|
The bear is locked to the wall with a golden chain!
|
||||||
|
|
||||||
|
> attack
|
||||||
|
|
||||||
|
With what? Your bare hands? Against *HIS* bear hands??
|
||||||
|
|
||||||
|
> unlock chain
|
||||||
|
|
||||||
|
There is no way to get past the bear to unlock the chain, which is
|
||||||
|
probably just as well.
|
||||||
|
|
||||||
> feed bear
|
> feed bear
|
||||||
|
|
||||||
The bear eagerly wolfs down your food, after which he seems to calm
|
The bear eagerly wolfs down your food, after which he seems to calm
|
||||||
down considerably and even becomes rather friendly.
|
down considerably and even becomes rather friendly.
|
||||||
|
|
||||||
|
> carry bear
|
||||||
|
|
||||||
|
The bear is still chained to the wall.
|
||||||
|
|
||||||
> unlock chain
|
> unlock chain
|
||||||
|
|
||||||
The chain is now unlocked.
|
The chain is now unlocked.
|
||||||
|
@ -1722,7 +1735,7 @@ to try to reincarnate you?
|
||||||
|
|
||||||
OK
|
OK
|
||||||
|
|
||||||
You scored 247 out of a possible 430, using 284 turns.
|
You scored 247 out of a possible 430, using 287 turns.
|
||||||
|
|
||||||
You may now consider yourself a "Seasoned Adventurer".
|
You may now consider yourself a "Seasoned Adventurer".
|
||||||
|
|
||||||
|
|
|
@ -271,7 +271,10 @@ ne
|
||||||
ne
|
ne
|
||||||
barren
|
barren
|
||||||
in
|
in
|
||||||
|
attack
|
||||||
|
unlock chain
|
||||||
feed bear
|
feed bear
|
||||||
|
carry bear
|
||||||
unlock chain
|
unlock chain
|
||||||
take chain
|
take chain
|
||||||
take bear
|
take bear
|
||||||
|
|
|
@ -2898,6 +2898,10 @@ not disturb the dwarves!" An immense mirror is hanging against one
|
||||||
wall, and stretches to the other end of the room, where various other
|
wall, and stretches to the other end of the room, where various other
|
||||||
sundry objects can be glimpsed dimly in the distance.
|
sundry objects can be glimpsed dimly in the distance.
|
||||||
|
|
||||||
|
> attack
|
||||||
|
|
||||||
|
The shell is very strong and is impervious to attack.
|
||||||
|
|
||||||
> take oyster
|
> take oyster
|
||||||
|
|
||||||
OK
|
OK
|
||||||
|
@ -2905,6 +2909,18 @@ OK
|
||||||
Interesting. There seems to be something written on the underside of
|
Interesting. There seems to be something written on the underside of
|
||||||
the oyster.
|
the oyster.
|
||||||
|
|
||||||
|
> lock oyster
|
||||||
|
|
||||||
|
Huh?
|
||||||
|
|
||||||
|
> drop oyster
|
||||||
|
|
||||||
|
OK
|
||||||
|
|
||||||
|
> take oyster
|
||||||
|
|
||||||
|
OK
|
||||||
|
|
||||||
> read oyster
|
> read oyster
|
||||||
|
|
||||||
Hmmm, this looks like a clue, which means it'll cost you 10 points to
|
Hmmm, this looks like a clue, which means it'll cost you 10 points to
|
||||||
|
@ -2937,7 +2953,7 @@ The resulting ruckus has awakened the dwarves. There are now several
|
||||||
threatening little dwarves in the room with you! Most of them throw
|
threatening little dwarves in the room with you! Most of them throw
|
||||||
knives at you! All of them get you!
|
knives at you! All of them get you!
|
||||||
|
|
||||||
You scored 383 out of a possible 430, using 465 turns.
|
You scored 383 out of a possible 430, using 469 turns.
|
||||||
|
|
||||||
Your score puts you in Master Adventurer Class B.
|
Your score puts you in Master Adventurer Class B.
|
||||||
|
|
||||||
|
|
|
@ -465,6 +465,10 @@ e
|
||||||
e
|
e
|
||||||
e
|
e
|
||||||
# Everything to here is from endgame428
|
# Everything to here is from endgame428
|
||||||
|
attack
|
||||||
|
take oyster
|
||||||
|
lock oyster
|
||||||
|
drop oyster
|
||||||
take oyster
|
take oyster
|
||||||
read oyster
|
read oyster
|
||||||
y
|
y
|
||||||
|
|
|
@ -12,6 +12,10 @@ Seed set to 1495951709
|
||||||
|
|
||||||
You're in front of building.
|
You're in front of building.
|
||||||
|
|
||||||
|
> attack
|
||||||
|
|
||||||
|
There is nothing here to attack.
|
||||||
|
|
||||||
> in
|
> in
|
||||||
|
|
||||||
You are inside a building, a well house for a large spring.
|
You are inside a building, a well house for a large spring.
|
||||||
|
@ -304,7 +308,7 @@ feel something wet land on your head, but upon looking up you can see
|
||||||
no sign of the culprit.
|
no sign of the culprit.
|
||||||
|
|
||||||
|
|
||||||
You scored 113 out of a possible 430, using 53 turns.
|
You scored 113 out of a possible 430, using 54 turns.
|
||||||
|
|
||||||
Your score qualifies you as a novice class adventurer.
|
Your score qualifies you as a novice class adventurer.
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
## Try to carry the bird after freeing it instead of listening
|
## Try to carry the bird after freeing it instead of listening
|
||||||
n
|
n
|
||||||
seed 1495951709
|
seed 1495951709
|
||||||
|
attack
|
||||||
in
|
in
|
||||||
take lamp
|
take lamp
|
||||||
on
|
on
|
||||||
|
|
|
@ -74,6 +74,11 @@ from east and west sides of the chamber.
|
||||||
|
|
||||||
A cheerful little bird is sitting here singing.
|
A cheerful little bird is sitting here singing.
|
||||||
|
|
||||||
|
> take bird
|
||||||
|
|
||||||
|
The bird seemed unafraid at first, but as you approach it becomes
|
||||||
|
disturbed and you cannot catch it.
|
||||||
|
|
||||||
> drop rod
|
> drop rod
|
||||||
|
|
||||||
OK
|
OK
|
||||||
|
@ -120,7 +125,7 @@ OK
|
||||||
OK
|
OK
|
||||||
|
|
||||||
|
|
||||||
You scored 34 out of a possible 430, using 20 turns.
|
You scored 34 out of a possible 430, using 21 turns.
|
||||||
|
|
||||||
You are obviously a rank amateur. Better luck next time.
|
You are obviously a rank amateur. Better luck next time.
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,7 @@ take cage
|
||||||
w
|
w
|
||||||
w
|
w
|
||||||
w
|
w
|
||||||
|
take bird
|
||||||
drop rod
|
drop rod
|
||||||
take bird
|
take bird
|
||||||
take rod
|
take rod
|
||||||
|
|
|
@ -27,14 +27,22 @@ OK
|
||||||
|
|
||||||
OK
|
OK
|
||||||
|
|
||||||
> fill bottle
|
> drop water
|
||||||
|
|
||||||
Your bottle is already full.
|
OK
|
||||||
|
|
||||||
|
> carry bottle
|
||||||
|
|
||||||
|
OK
|
||||||
|
|
||||||
> drink
|
> drink
|
||||||
|
|
||||||
The bottle of water is now empty.
|
The bottle of water is now empty.
|
||||||
|
|
||||||
|
> fill bottle
|
||||||
|
|
||||||
|
Your bottle is now full of water.
|
||||||
|
|
||||||
> xyzzy
|
> xyzzy
|
||||||
|
|
||||||
>>Foof!<<
|
>>Foof!<<
|
||||||
|
@ -47,10 +55,10 @@ You can't fill that.
|
||||||
|
|
||||||
> fill bottle
|
> fill bottle
|
||||||
|
|
||||||
There is nothing here with which to fill the bottle.
|
Your bottle is already full.
|
||||||
|
|
||||||
|
|
||||||
You scored 32 out of a possible 430, using 8 turns.
|
You scored 32 out of a possible 430, using 10 turns.
|
||||||
|
|
||||||
You are obviously a rank amateur. Better luck next time.
|
You are obviously a rank amateur. Better luck next time.
|
||||||
|
|
||||||
|
|
|
@ -3,8 +3,10 @@ n
|
||||||
in
|
in
|
||||||
carry lamp
|
carry lamp
|
||||||
carry bottle
|
carry bottle
|
||||||
fill bottle
|
drop water
|
||||||
|
carry bottle
|
||||||
drink
|
drink
|
||||||
|
fill bottle
|
||||||
xyzzy
|
xyzzy
|
||||||
fill lamp
|
fill lamp
|
||||||
fill bottle
|
fill bottle
|
|
@ -135,7 +135,7 @@ You're in Hall of Mt King.
|
||||||
|
|
||||||
A huge green fierce snake bars the way!
|
A huge green fierce snake bars the way!
|
||||||
|
|
||||||
> attack snake
|
> attack
|
||||||
|
|
||||||
Attacking the snake both doesn't work and is very dangerous.
|
Attacking the snake both doesn't work and is very dangerous.
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ w
|
||||||
down
|
down
|
||||||
down
|
down
|
||||||
w
|
w
|
||||||
attack snake
|
attack
|
||||||
w
|
w
|
||||||
eat snake
|
eat snake
|
||||||
w
|
w
|
||||||
|
|
|
@ -19,8 +19,7 @@ You can type "help" for some general hints. For information on how
|
||||||
to end your adventure, scoring, etc., type "info".
|
to end your adventure, scoring, etc., type "info".
|
||||||
- - -
|
- - -
|
||||||
This program was originally developed by Willie Crowther. Most of the
|
This program was originally developed by Willie Crowther. Most of the
|
||||||
features of the current program were added by Don Woods. Contact Don
|
features of the current program were added by Don Woods. You are running Open Adventure; there is a resource page at http://www.catb.org/esr/open-adventure/
|
||||||
if you have any questions, comments, etc.
|
|
||||||
|
|
||||||
You are standing at the end of a road before a small brick building.
|
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
|
Around you is a forest. A small stream flows out of the building and
|
||||||
|
|
1088
tests/lockchain.chk
1088
tests/lockchain.chk
File diff suppressed because it is too large
Load diff
|
@ -47,7 +47,7 @@ n
|
||||||
sw
|
sw
|
||||||
w
|
w
|
||||||
feed dragon
|
feed dragon
|
||||||
kill dragon
|
attack
|
||||||
yes
|
yes
|
||||||
drink blood
|
drink blood
|
||||||
take rug
|
take rug
|
||||||
|
@ -101,7 +101,7 @@ s
|
||||||
kill machine
|
kill machine
|
||||||
s
|
s
|
||||||
s
|
s
|
||||||
kill ogre
|
attack
|
||||||
n
|
n
|
||||||
take ruby
|
take ruby
|
||||||
s
|
s
|
||||||
|
@ -284,6 +284,7 @@ w
|
||||||
d
|
d
|
||||||
sw
|
sw
|
||||||
u
|
u
|
||||||
|
attack
|
||||||
feed troll
|
feed troll
|
||||||
toss eggs
|
toss eggs
|
||||||
ne
|
ne
|
||||||
|
|
|
@ -915,6 +915,10 @@ a large hole in the wall about 25 feet above you.
|
||||||
|
|
||||||
There is a tiny little plant in the pit, murmuring "water, water, ..."
|
There is a tiny little plant in the pit, murmuring "water, water, ..."
|
||||||
|
|
||||||
|
> carry plant
|
||||||
|
|
||||||
|
The plant has exceptionally deep roots and cannot be pulled free.
|
||||||
|
|
||||||
> water plant
|
> water plant
|
||||||
|
|
||||||
The plant spurts into furious growth for a few seconds.
|
The plant spurts into furious growth for a few seconds.
|
||||||
|
@ -1134,8 +1138,12 @@ There is a huge beanstalk growing out of the west pit up to the hole.
|
||||||
|
|
||||||
What do you want to do with the plant?
|
What do you want to do with the plant?
|
||||||
|
|
||||||
|
> carry plant
|
||||||
|
|
||||||
You scored 185 out of a possible 430, using 184 turns.
|
You can't be serious!
|
||||||
|
|
||||||
|
|
||||||
|
You scored 185 out of a possible 430, using 186 turns.
|
||||||
|
|
||||||
You may now consider yourself a "Seasoned Adventurer".
|
You may now consider yourself a "Seasoned Adventurer".
|
||||||
|
|
||||||
|
|
|
@ -148,6 +148,7 @@ take axe
|
||||||
slab
|
slab
|
||||||
s
|
s
|
||||||
d
|
d
|
||||||
|
carry plant
|
||||||
water plant
|
water plant
|
||||||
u
|
u
|
||||||
w
|
w
|
||||||
|
@ -186,3 +187,4 @@ u
|
||||||
w
|
w
|
||||||
u
|
u
|
||||||
oil plant
|
oil plant
|
||||||
|
carry plant
|
|
@ -332,6 +332,10 @@ There is a persian rug spread out on the floor!
|
||||||
|
|
||||||
The blood-specked body of a huge green dead dragon lies to one side.
|
The blood-specked body of a huge green dead dragon lies to one side.
|
||||||
|
|
||||||
|
> carry blood
|
||||||
|
|
||||||
|
There are only a few drops--not enough to carry.
|
||||||
|
|
||||||
> drink blood
|
> drink blood
|
||||||
|
|
||||||
Your head buzzes strangely for a moment.
|
Your head buzzes strangely for a moment.
|
||||||
|
@ -1965,6 +1969,10 @@ down, but a small ledge can be seen to the west across the chasm.
|
||||||
|
|
||||||
A small urn is embedded in the rock.
|
A small urn is embedded in the rock.
|
||||||
|
|
||||||
|
> carry urn
|
||||||
|
|
||||||
|
The urn is far too firmly embedded for your puny strength to budge it.
|
||||||
|
|
||||||
> light urn
|
> light urn
|
||||||
|
|
||||||
The urn is empty and will not light.
|
The urn is empty and will not light.
|
||||||
|
@ -1993,9 +2001,9 @@ The urn is already full of oil.
|
||||||
|
|
||||||
I'm afraid I don't understand.
|
I'm afraid I don't understand.
|
||||||
|
|
||||||
> extinguish urn
|
> extinguish
|
||||||
|
|
||||||
The urn is now dark.
|
I'm afraid I don't understand.
|
||||||
|
|
||||||
> fly
|
> fly
|
||||||
|
|
||||||
|
@ -2003,7 +2011,7 @@ If you mean to use the persian rug, it does not appear inclined to
|
||||||
cooperate.
|
cooperate.
|
||||||
|
|
||||||
|
|
||||||
You scored 267 out of a possible 430, using 337 turns.
|
You scored 267 out of a possible 430, using 339 turns.
|
||||||
|
|
||||||
You have reached "Junior Master" status.
|
You have reached "Junior Master" status.
|
||||||
|
|
||||||
|
|
|
@ -57,6 +57,7 @@ take axe
|
||||||
w
|
w
|
||||||
kill dragon
|
kill dragon
|
||||||
yes
|
yes
|
||||||
|
carry blood
|
||||||
drink blood
|
drink blood
|
||||||
take rug
|
take rug
|
||||||
e
|
e
|
||||||
|
@ -331,6 +332,7 @@ n
|
||||||
n
|
n
|
||||||
n
|
n
|
||||||
# Everything to here copied from endgame428
|
# Everything to here copied from endgame428
|
||||||
|
carry urn
|
||||||
light urn
|
light urn
|
||||||
# Changed below from "fill urn" in order to test more code
|
# Changed below from "fill urn" in order to test more code
|
||||||
pour bottle
|
pour bottle
|
||||||
|
@ -339,5 +341,5 @@ drink oil
|
||||||
light urn
|
light urn
|
||||||
fill urn
|
fill urn
|
||||||
read urn
|
read urn
|
||||||
extinguish urn
|
extinguish
|
||||||
fly
|
fly
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue