From: Aaron Traas Date: Sun, 2 Jul 2017 16:49:46 +0000 (-0400) Subject: Test coverage: intransitive lock X-Git-Tag: takebird~104 X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=commitdiff_plain;h=589a1c92adc3d9acfc7244cc93c3a3801dfb18a4 Test coverage: intransitive lock --- diff --git a/tests/breakmirror.chk b/tests/breakmirror.chk index c2daeab..78a6bd1 100644 --- a/tests/breakmirror.chk +++ b/tests/breakmirror.chk @@ -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. +> unlock + +The door is extremely rusty and refuses to open. + > oil door 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 down considerably and even becomes rather friendly. -> unlock chain +> unlock The chain is now unlocked. +> unlock chain + +It was already unlocked. + > take chain OK @@ -2084,6 +2092,9 @@ down a gully. > 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. There is a golden chain lying in a heap on the floor! @@ -2122,9 +2133,6 @@ OK > drop sapphire -Tsk! A wizard wouldn't have to take 350 turns. This is going to cost -you a couple of points. - OK > drop amber @@ -2398,6 +2406,10 @@ You're in n/s passage above e/w passage. > 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. > w @@ -2406,10 +2418,6 @@ You're in dusty rock room. > 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. > e @@ -2618,6 +2626,8 @@ narrow tunnel exits to the west. A dark corridor leads ne. > e +Your lamp has run out of power. + There is no way to go that direction. You're in Plover Room. @@ -2630,8 +2640,6 @@ You're in Plover Room. > e -Your lamp has run out of power. - There is no way to go that direction. You're in Plover Room. @@ -2913,6 +2921,10 @@ OK Interesting. There seems to be something written on the underside of the oyster. +> lock + +Huh? + > lock oyster 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 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. diff --git a/tests/breakmirror.log b/tests/breakmirror.log index d7d90da..2744dd2 100644 --- a/tests/breakmirror.log +++ b/tests/breakmirror.log @@ -191,6 +191,7 @@ d climb w n +unlock oil door drop bottle n @@ -273,6 +274,7 @@ ne barren in feed bear +unlock unlock chain take chain take bear @@ -468,6 +470,7 @@ e # Everything to here is from endgame428 attack take oyster +lock lock oyster drop oyster take oyster diff --git a/tests/lockchain.chk b/tests/lockchain.chk index 666fa13..aff5e71 100644 --- a/tests/lockchain.chk +++ b/tests/lockchain.chk @@ -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. +> lock + +Huh? + > open clam 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. -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". diff --git a/tests/lockchain.log b/tests/lockchain.log index 1037d1f..085711d 100644 --- a/tests/lockchain.log +++ b/tests/lockchain.log @@ -219,6 +219,7 @@ w ne e n +lock open clam s u