Some fuzzing-generated tests, with possible coverage redundancies

This commit is contained in:
NHOrus 2017-07-09 20:21:59 +03:00
parent 53b68161ff
commit 2b22871cce
8 changed files with 1145 additions and 0 deletions

253
tests/dragon_secret5.chk Normal file
View file

@ -0,0 +1,253 @@
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 18084731
Seed set to 18084731
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.
> take lamp
OK
> xyzzy
>>Foof!<<
It is now pitch dark. If you proceed you will likely fall into a pit.
> on
Your lamp is now on.
You are in a debris room filled with stuff washed in from the surface.
A low wide passage with cobbles becomes plugged with mud and debris
here, but an awkward canyon leads upward and west. In the mud someone
has scrawled, "MAGIC WORD XYZZY".
A three foot black rod with a rusty star on an end lies nearby.
> e
You are crawling over cobbles in a low passage. There is a dim light
at the east end of the passage.
There is a small wicker cage discarded nearby.
> take
OK
> w
You're in debris room.
A three foot black rod with a rusty star on an end lies nearby.
> w
You are in an awkward sloping east/west canyon.
> w
You are in a splendid chamber thirty feet high. The walls are frozen
rivers of orange stone. An awkward canyon and a good passage exit
from east and west sides of the chamber.
A cheerful little bird is sitting here singing.
> cage bird
OK
> w
At your feet is a small pit breathing traces of white mist. An east
passage ends here except for a small crack leading on.
Rough stone steps lead down the pit.
> d
You are at one end of a vast hall stretching forward out of sight to
the west. There are openings to either side. Nearby, a wide stone
staircase leads downward. The hall is filled with wisps of white mist
swaying to and fro almost as if alive. A cold wind blows up the
staircase. There is a passage at the top of a dome behind you.
Rough stone steps lead up the dome.
> d
You are in the Hall of the Mountain King, with passages off in all
directions.
A huge green fierce snake bars the way!
> free bird
The little bird attacks the green snake, and in an astounding flurry
drives the snake away.
> w
You are in the west side chamber of the Hall of the Mountain King.
A passage continues west and up here.
There are many coins here!
> e
You're in Hall of Mt King.
A cheerful little bird is sitting here singing.
> s
You are in the south side chamber.
There is precious jewelry here!
> u
There is no way to go that direction.
You are in the south side chamber.
There is precious jewelry here!
> s
There is no way to go that direction.
You are in the south side chamber.
There is precious jewelry here!
> n
You're in Hall of Mt King.
A cheerful little bird is sitting here singing.
> d
There is no way to go that direction.
You're in Hall of Mt King.
A cheerful little bird is sitting here singing.
> n
You are in a low n/s passage at a hole in the floor. The hole goes
down to an e/w passage.
There are bars of silver here!
> n
You are in a large room, with a passage to the south, a passage to the
west, and a wall of broken rock to the east. There is a large "Y2" on
a rock in the room's center.
> plugh
>>Foof!<<
You're inside building.
There are some keys on the ground here.
There is food here.
There is a bottle of water here.
> extin
Your lamp is now off.
> plugh
>>Foof!<<
It is now pitch dark. If you proceed you will likely fall into a pit.
> on
Your lamp is now on.
You're at "Y2".
> s
You're in n/s passage above e/w passage.
There are bars of silver here!
> s
You're in Hall of Mt King.
A cheerful little bird is sitting here singing.
> sw
You are in a secret canyon which here runs e/w. It crosses over a
very tight canyon 15 feet below. If you go down you may not be able
to get back up.
> w
A little dwarf just walked around a corner, saw you, threw a little
axe at you which missed, cursed, and ran away.
You are in a secret canyon which exits to the north and east.
There is a little axe here.
A huge green fierce dragon bars the way!
The dragon is sprawled out on a persian rug!!
> kill drago
With what? Your bare hands?
> y
Congratulations! You have just vanquished a dragon with your bare
hands! (Unbelievable, isn't it?)
You are in a secret canyon which exits to the north and east.
There is a little axe here.
There is a persian rug spread out on the floor!
The blood-specked body of a huge green dead dragon lies to one side.
You scored 65 out of a possible 430, using 32 turns.
Your score qualifies you as a novice class adventurer.
To achieve the next higher rating, you need 56 more points.

36
tests/dragon_secret5.log Normal file
View file

@ -0,0 +1,36 @@
## Check that dead dragon actually moves it's location (fuzzed)
n
seed 18084731
in
take lamp
xyzzy
on
e
take
w
w
w
cage bird
w
d
d
free bird
w
e
s
u
s
n
d
n
n
plugh
extin
plugh
on
s
s
sw
w
kill drago
y

View file

@ -0,0 +1,59 @@
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 383847
Seed set to 383847
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.
> xyzzy
>>Foof!<<
It is now pitch dark. If you proceed you will likely fall into a pit.
> w
It is now pitch dark. If you proceed you will likely fall into a pit.
> w
It is now pitch dark. If you proceed you will likely fall into a pit.
> w
It is now pitch dark. If you proceed you will likely fall into a pit.
> d
It is now pitch dark. If you proceed you will likely fall into a pit.
> d
A little dwarf just walked around a corner, saw you, threw a little
axe at you which missed, cursed, and ran away.
You fell into a pit and broke every bone in your body!
Oh dear, you seem to have gotten yourself killed. I might be able to
help you out, but I've never really done this before. Do you want me
to try to reincarnate you?

View file

@ -0,0 +1,10 @@
# Check that dwarf spawns in alternative location (fuzzed)
n
seed 383847
in
xyzzy
w
w
w
d
d

323
tests/pirate_carry.chk Normal file
View file

@ -0,0 +1,323 @@
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 1837473132
Seed set to 1837473132
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.
> take lamp
OK
> xyzzy
>>Foof!<<
It is now pitch dark. If you proceed you will likely fall into a pit.
> on
Your lamp is now on.
You are in a debris room filled with stuff washed in from the surface.
A low wide passage with cobbles becomes plugged with mud and debris
here, but an awkward canyon leads upward and west. In the mud someone
has scrawled, "MAGIC WORD XYZZY".
A three foot black rod with a rusty star on an end lies nearby.
> take rod
OK
> e
You are crawling over cobbles in a low passage. There is a dim light
at the east end of the passage.
There is a small wicker cage discarded nearby.
> take cage
OK
> w
You're in debris room.
> w
You are in an awkward sloping east/west canyon.
> w
You are in a splendid chamber thirty feet high. The walls are frozen
rivers of orange stone. An awkward canyon and a good passage exit
from east and west sides of the chamber.
A cheerful little bird is sitting here singing.
> drop rod
OK
> cage bird
OK
> take rod
OK
> w
At your feet is a small pit breathing traces of white mist. An east
passage ends here except for a small crack leading on.
Rough stone steps lead down the pit.
> d
You are at one end of a vast hall stretching forward out of sight to
the west. There are openings to either side. Nearby, a wide stone
staircase leads downward. The hall is filled with wisps of white mist
swaying to and fro almost as if alive. A cold wind blows up the
staircase. There is a passage at the top of a dome behind you.
Rough stone steps lead up the dome.
> d
You are in the Hall of the Mountain King, with passages off in all
directions.
A huge green fierce snake bars the way!
> free bird
The little bird attacks the green snake, and in an astounding flurry
drives the snake away.
> w
You are in the west side chamber of the Hall of the Mountain King.
A passage continues west and up here.
There are many coins here!
> e
You're in Hall of Mt King.
A cheerful little bird is sitting here singing.
> s
You are in the south side chamber.
There is precious jewelry here!
> n
You're in Hall of Mt King.
A cheerful little bird is sitting here singing.
> u
You're in Hall of Mists.
Rough stone steps lead up the dome.
> s
This is a low room with a crude note on the wall. The note says,
"You won't get it up the steps".
There is a large sparkling nugget of gold here!
> n
You're in Hall of Mists.
Rough stone steps lead up the dome.
> d
You're in Hall of Mt King.
A cheerful little bird is sitting here singing.
> n
You are in a low n/s passage at a hole in the floor. The hole goes
down to an e/w passage.
There are bars of silver here!
> n
You are in a large room, with a passage to the south, a passage to the
west, and a wall of broken rock to the east. There is a large "Y2" on
a rock in the room's center.
A hollow voice says "PLUGH".
> plugh
>>Foof!<<
You're inside building.
There are some keys on the ground here.
There is food here.
There is a bottle of water here.
> extin
Your lamp is now off.
> plugh
>>Foof!<<
A little dwarf just walked around a corner, saw you, threw a little
axe at you which missed, cursed, and ran away.
It is now pitch dark. If you proceed you will likely fall into a pit.
> on
Your lamp is now on.
You're at "Y2".
There is a little axe here.
> s
You're in n/s passage above e/w passage.
There are bars of silver here!
> take silve
OK
> s
There is a threatening little dwarf in the room with you!
You're in Hall of Mt King.
A cheerful little bird is sitting here singing.
> sw
There is a threatening little dwarf in the room with you!
You are in a secret canyon which here runs e/w. It crosses over a
very tight canyon 15 feet below. If you go down you may not be able
to get back up.
> w
There is a threatening little dwarf in the room with you!
You are in a secret canyon which exits to the north and east.
A huge green fierce dragon bars the way!
The dragon is sprawled out on a persian rug!!
> kill drago
With what? Your bare hands?
> y
Congratulations! You have just vanquished a dragon with your bare
hands! (Unbelievable, isn't it?)
There is a threatening little dwarf in the room with you!
You are in a secret canyon which exits to the north and east.
There is a persian rug spread out on the floor!
The blood-specked body of a huge green dead dragon lies to one side.
> e
There is a threatening little dwarf in the room with you!
You're in secret e/w canyon above tight canyon.
> e
There is a threatening little dwarf in the room with you!
You are in the Hall of the Mountain King, with passages off in all
directions.
A cheerful little bird is sitting here singing.
> u
There are 2 threatening little dwarves in the room with you.
You're in Hall of Mists.
Rough stone steps lead up the dome.
> w
There are 2 threatening little dwarves in the room with you.
You are on the east bank of a fissure slicing clear across the hall.
The mist is quite thick here, and the fissure is too wide to jump.
> wave rod
A crystal bridge now spans the fissure.
> w
Out from the shadows behind you pounces a bearded pirate! "Har, har,"
he chortles, "I'll just take all this booty and hide it away with me
chest deep in the maze!" He snatches your treasure and vanishes into
the gloom.
There are 2 threatening little dwarves in the room with you.
You are on the west side of the fissure in the Hall of Mists.
A crystal bridge spans the fissure.
You scored 67 out of a possible 430, using 43 turns.
Your score qualifies you as a novice class adventurer.
To achieve the next higher rating, you need 54 more points.

47
tests/pirate_carry.log Normal file
View file

@ -0,0 +1,47 @@
## Check that pirate steals loose treasure from ground (fuzzed)
n
seed 1837473132
in
take lamp
xyzzy
on
take rod
e
take cage
w
w
w
drop rod
cage bird
take rod
w
d
d
free bird
w
e
s
n
u
s
n
d
n
n
plugh
extin
plugh
on
s
take silve
s
sw
w
kill drago
y
e
e
u
w
wave rod
w

View file

@ -0,0 +1,363 @@
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 1830473132
Seed set to 1830473132
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.
> take lamp
OK
> xyzzy
>>Foof!<<
It is now pitch dark. If you proceed you will likely fall into a pit.
> on
Your lamp is now on.
You are in a debris room filled with stuff washed in from the surface.
A low wide passage with cobbles becomes plugged with mud and debris
here, but an awkward canyon leads upward and west. In the mud someone
has scrawled, "MAGIC WORD XYZZY".
A three foot black rod with a rusty star on an end lies nearby.
> e
You are crawling over cobbles in a low passage. There is a dim light
at the east end of the passage.
There is a small wicker cage discarded nearby.
> take cage
OK
> w
You're in debris room.
A three foot black rod with a rusty star on an end lies nearby.
> w
You are in an awkward sloping east/west canyon.
> w
You are in a splendid chamber thirty feet high. The walls are frozen
rivers of orange stone. An awkward canyon and a good passage exit
from east and west sides of the chamber.
A cheerful little bird is sitting here singing.
> take bird
OK
> w
At your feet is a small pit breathing traces of white mist. An east
passage ends here except for a small crack leading on.
Rough stone steps lead down the pit.
> d
You are at one end of a vast hall stretching forward out of sight to
the west. There are openings to either side. Nearby, a wide stone
staircase leads downward. The hall is filled with wisps of white mist
swaying to and fro almost as if alive. A cold wind blows up the
staircase. There is a passage at the top of a dome behind you.
Rough stone steps lead up the dome.
> d
You are in the Hall of the Mountain King, with passages off in all
directions.
A huge green fierce snake bars the way!
> free bird
The little bird attacks the green snake, and in an astounding flurry
drives the snake away.
> w
You are in the west side chamber of the Hall of the Mountain King.
A passage continues west and up here.
There are many coins here!
> e
You're in Hall of Mt King.
A cheerful little bird is sitting here singing.
> s
You are in the south side chamber.
There is precious jewelry here!
> n
You're in Hall of Mt King.
A cheerful little bird is sitting here singing.
> u
You're in Hall of Mists.
Rough stone steps lead up the dome.
> s
This is a low room with a crude note on the wall. The note says,
"You won't get it up the steps".
There is a large sparkling nugget of gold here!
> n
You're in Hall of Mists.
Rough stone steps lead up the dome.
> d
You're in Hall of Mt King.
A cheerful little bird is sitting here singing.
> n
You are in a low n/s passage at a hole in the floor. The hole goes
down to an e/w passage.
There are bars of silver here!
> n
You are in a large room, with a passage to the south, a passage to the
west, and a wall of broken rock to the east. There is a large "Y2" on
a rock in the room's center.
A hollow voice says "PLUGH".
> plugh
>>Foof!<<
You're inside building.
There are some keys on the ground here.
There is food here.
There is a bottle of water here.
> extin
Your lamp is now off.
> plugh
>>Foof!<<
It is now pitch dark. If you proceed you will likely fall into a pit.
> on
Your lamp is now on.
You're at "Y2".
> s
You're in n/s passage above e/w passage.
There are bars of silver here!
> s
A little dwarf just walked around a corner, saw you, threw a little
axe at you which missed, cursed, and ran away.
You're in Hall of Mt King.
There is a little axe here.
A cheerful little bird is sitting here singing.
> sw
You are in a secret canyon which here runs e/w. It crosses over a
very tight canyon 15 feet below. If you go down you may not be able
to get back up.
> w
You are in a secret canyon which exits to the north and east.
A huge green fierce dragon bars the way!
The dragon is sprawled out on a persian rug!!
> kill
With what? Your bare hands?
> y
Congratulations! You have just vanquished a dragon with your bare
hands! (Unbelievable, isn't it?)
You are in a secret canyon which exits to the north and east.
There is a persian rug spread out on the floor!
The blood-specked body of a huge green dead dragon lies to one side.
> e
You're in secret e/w canyon above tight canyon.
> e
You are in the Hall of the Mountain King, with passages off in all
directions.
There is a little axe here.
A cheerful little bird is sitting here singing.
> d
There is no way to go that direction.
You're in Hall of Mt King.
There is a little axe here.
A cheerful little bird is sitting here singing.
> n
You're in n/s passage above e/w passage.
There are bars of silver here!
> n
You're at "Y2".
A hollow voice says "PLUGH".
> plugh
>>Foof!<<
You're inside building.
There are some keys on the ground here.
There is food here.
There is a bottle of water here.
> out
You're in front of building.
> s
You are in a valley in the forest beside a stream tumbling along a
rocky bed.
> w
You are wandering aimlessly through the forest.
> n
You are wandering aimlessly through the forest.
Your keen eye spots a severed leporine appendage lying on the ground.
> s
You are wandering aimlessly through the forest.
> s
You're in valley.
> n
You're in front of building.
> in
You're inside building.
There are some keys on the ground here.
There is food here.
There is a bottle of water here.
> plugh
>>Foof!<<
You're at "Y2".
> plove
>>Foof!<<
You're in a small chamber lit by an eerie green light. An extremely
narrow tunnel exits to the west. A dark corridor leads ne.
There is an emerald here the size of a plover's egg!
> inven
You are currently holding the following:
Brass lantern
Wicker cage
You scored 69 out of a possible 430, using 50 turns.
Your score qualifies you as a novice class adventurer.
To achieve the next higher rating, you need 52 more points.

View file

@ -0,0 +1,54 @@
## Checks that pirate is unable to steal pyramid from plover room or dark room (fuzzed)
n
seed 1830473132
in
take lamp
xyzzy
on
e
take cage
w
w
w
take bird
w
d
d
free bird
w
e
s
n
u
s
n
d
n
n
plugh
extin
plugh
on
s
s
sw
w
kill
y
e
e
d
n
n
plugh
out
s
w
n
s
s
n
in
plugh
plove
inven