Test coverage - add lots more coverage from actions.c

This commit is contained in:
Aaron Traas 2017-06-29 16:40:21 -04:00
parent 78eee015e3
commit d0a868bd4a
19 changed files with 234 additions and 973 deletions

View file

@ -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!
> 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
The bear eagerly wolfs down your food, after which he seems to calm
down considerably and even becomes rather friendly.
> carry bear
The bear is still chained to the wall.
> unlock chain
The chain is now unlocked.
@ -1722,7 +1735,7 @@ to try to reincarnate you?
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".

View file

@ -271,7 +271,10 @@ ne
ne
barren
in
attack
unlock chain
feed bear
carry bear
unlock chain
take chain
take bear

View file

@ -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
sundry objects can be glimpsed dimly in the distance.
> attack
The shell is very strong and is impervious to attack.
> take oyster
OK
@ -2905,6 +2909,18 @@ OK
Interesting. There seems to be something written on the underside of
the oyster.
> lock oyster
Huh?
> drop oyster
OK
> take oyster
OK
> read oyster
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
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.

View file

@ -465,6 +465,10 @@ e
e
e
# Everything to here is from endgame428
attack
take oyster
lock oyster
drop oyster
take oyster
read oyster
y

View file

@ -12,6 +12,10 @@ Seed set to 1495951709
You're in front of building.
> attack
There is nothing here to attack.
> in
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.
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.

View file

@ -1,6 +1,7 @@
## Try to carry the bird after freeing it instead of listening
n
seed 1495951709
attack
in
take lamp
on

View file

@ -74,6 +74,11 @@ from east and west sides of the chamber.
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
OK
@ -120,7 +125,7 @@ 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.

View file

@ -11,6 +11,7 @@ take cage
w
w
w
take bird
drop rod
take bird
take rod

View file

@ -27,14 +27,22 @@ OK
OK
> fill bottle
> drop water
Your bottle is already full.
OK
> carry bottle
OK
> drink
The bottle of water is now empty.
> fill bottle
Your bottle is now full of water.
> xyzzy
>>Foof!<<
@ -47,10 +55,10 @@ You can't fill that.
> 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.

View file

@ -3,8 +3,10 @@ n
in
carry lamp
carry bottle
fill bottle
drop water
carry bottle
drink
fill bottle
xyzzy
fill lamp
fill bottle
fill bottle

View file

@ -135,7 +135,7 @@ You're in Hall of Mt King.
A huge green fierce snake bars the way!
> attack snake
> attack
Attacking the snake both doesn't work and is very dangerous.

View file

@ -20,7 +20,7 @@ w
down
down
w
attack snake
attack
w
eat snake
w

View file

@ -19,8 +19,7 @@ You can type "help" for some general hints. For information on how
to end your adventure, scoring, etc., type "info".
- - -
This program was originally developed by Willie Crowther. Most of the
features of the current program were added by Don Woods. Contact Don
if you have any questions, comments, etc.
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/
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

File diff suppressed because it is too large Load diff

View file

@ -47,7 +47,7 @@ n
sw
w
feed dragon
kill dragon
attack
yes
drink blood
take rug
@ -101,7 +101,7 @@ s
kill machine
s
s
kill ogre
attack
n
take ruby
s
@ -284,6 +284,7 @@ w
d
sw
u
attack
feed troll
toss eggs
ne

View file

@ -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, ..."
> carry plant
The plant has exceptionally deep roots and cannot be pulled free.
> water plant
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?
> 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".

View file

@ -148,6 +148,7 @@ take axe
slab
s
d
carry plant
water plant
u
w
@ -186,3 +187,4 @@ u
w
u
oil plant
carry plant

View file

@ -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.
> carry blood
There are only a few drops--not enough to carry.
> drink blood
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.
> carry urn
The urn is far too firmly embedded for your puny strength to budge it.
> light urn
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.
> extinguish urn
> extinguish
The urn is now dark.
I'm afraid I don't understand.
> fly
@ -2003,7 +2011,7 @@ If you mean to use the persian rug, it does not appear inclined to
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.

View file

@ -57,6 +57,7 @@ take axe
w
kill dragon
yes
carry blood
drink blood
take rug
e
@ -331,6 +332,7 @@ n
n
n
# Everything to here copied from endgame428
carry urn
light urn
# Changed below from "fill urn" in order to test more code
pour bottle
@ -339,5 +341,5 @@ drink oil
light urn
fill urn
read urn
extinguish urn
extinguish
fly