Test coverage: intransitive lock

This commit is contained in:
Aaron Traas 2017-07-02 12:49:46 -04:00 committed by Eric S. Raymond
parent dd50e7c9d3
commit 589a1c92ad
4 changed files with 42 additions and 22 deletions

View file

@ -1157,6 +1157,10 @@ You are at one end of an immense north/south passage.
The way north is barred by a massive, rusty, iron door. The way north is barred by a massive, rusty, iron door.
> unlock
The door is extremely rusty and refuses to open.
> oil door > oil door
The oil has freed up the hinges so that the door will now move, The oil has freed up the hinges so that the door will now move,
@ -1618,10 +1622,14 @@ The bear is locked to the wall with a golden chain!
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.
> unlock chain > unlock
The chain is now unlocked. The chain is now unlocked.
> unlock chain
It was already unlocked.
> take chain > take chain
OK OK
@ -2084,6 +2092,9 @@ down a gully.
> in > in
Tsk! A wizard wouldn't have to take 350 turns. This is going to cost
you a couple of points.
You're inside building. You're inside building.
There is a golden chain lying in a heap on the floor! There is a golden chain lying in a heap on the floor!
@ -2122,9 +2133,6 @@ OK
> drop sapphire > drop sapphire
Tsk! A wizard wouldn't have to take 350 turns. This is going to cost
you a couple of points.
OK OK
> drop amber > drop amber
@ -2398,6 +2406,10 @@ You're in n/s passage above e/w passage.
> d > d
Your lamp is getting dim. You'd best start wrapping this up, unless
you can find some fresh batteries. I seem to recall there's a vending
machine in the maze. Bring some coins with you.
You're in dirty passage. You're in dirty passage.
> w > w
@ -2406,10 +2418,6 @@ You're in dusty rock room.
> d > d
Your lamp is getting dim. You'd best start wrapping this up, unless
you can find some fresh batteries. I seem to recall there's a vending
machine in the maze. Bring some coins with you.
You're at complex junction. You're at complex junction.
> e > e
@ -2618,18 +2626,6 @@ narrow tunnel exits to the west. A dark corridor leads ne.
> e > e
There is no way to go that direction.
You're in Plover Room.
> e
There is no way to go that direction.
You're in Plover Room.
> e
Your lamp has run out of power. Your lamp has run out of power.
There is no way to go that direction. There is no way to go that direction.
@ -2646,6 +2642,18 @@ You're in Plover Room.
There is no way to go that direction. There is no way to go that direction.
You're in Plover Room.
> e
There is no way to go that direction.
You're in Plover Room.
> e
There is no way to go that direction.
You're in a small chamber lit by an eerie green light. An extremely 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. narrow tunnel exits to the west. A dark corridor leads ne.
@ -2913,6 +2921,10 @@ 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
Huh?
> lock oyster > lock oyster
Huh? Huh?
@ -2957,7 +2969,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 470 turns. You scored 383 out of a possible 430, using 473 turns.
Your score puts you in Master Adventurer Class B. Your score puts you in Master Adventurer Class B.

View file

@ -191,6 +191,7 @@ d
climb climb
w w
n n
unlock
oil door oil door
drop bottle drop bottle
n n
@ -273,6 +274,7 @@ ne
barren barren
in in
feed bear feed bear
unlock
unlock chain unlock chain
take chain take chain
take bear take bear
@ -468,6 +470,7 @@ e
# Everything to here is from endgame428 # Everything to here is from endgame428
attack attack
take oyster take oyster
lock
lock oyster lock oyster
drop oyster drop oyster
take oyster take oyster

View file

@ -1273,6 +1273,10 @@ up. A low hands and knees passage enters from the south.
There is an enormous clam here with its shell tightly closed. There is an enormous clam here with its shell tightly closed.
> lock
Huh?
> open clam > open clam
A glistening pearl falls out of the clam and rolls away. Goodness, A glistening pearl falls out of the clam and rolls away. Goodness,
@ -1764,7 +1768,7 @@ There is a little axe here.
The chain is now locked. The chain is now locked.
You scored 225 out of a possible 430, using 308 turns. You scored 225 out of a possible 430, using 309 turns.
You may now consider yourself a "Seasoned Adventurer". You may now consider yourself a "Seasoned Adventurer".

View file

@ -219,6 +219,7 @@ w
ne ne
e e
n n
lock
open clam open clam
s s
u u