From c8445a88d7adf3b106f9aee9e009e6cf78d50108 Mon Sep 17 00:00:00 2001 From: Aaron Traas Date: Sun, 2 Jul 2017 21:53:28 -0400 Subject: [PATCH] Coverage -- corner cases in lock and find --- tests/breakmirror.chk | 6 +++++- tests/breakmirror.log | 2 ++ tests/urntest2.chk | 10 +++++++++- tests/urntest2.log | 3 +++ 4 files changed, 19 insertions(+), 2 deletions(-) diff --git a/tests/breakmirror.chk b/tests/breakmirror.chk index 78a6bd1..c60b6b7 100644 --- a/tests/breakmirror.chk +++ b/tests/breakmirror.chk @@ -2921,6 +2921,10 @@ OK Interesting. There seems to be something written on the underside of the oyster. +> find oyster + +You are already carrying it! + > lock Huh? @@ -2969,7 +2973,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 473 turns. +You scored 383 out of a possible 430, using 474 turns. Your score puts you in Master Adventurer Class B. diff --git a/tests/breakmirror.log b/tests/breakmirror.log index 2744dd2..712b2f9 100644 --- a/tests/breakmirror.log +++ b/tests/breakmirror.log @@ -1,4 +1,5 @@ ## Break the mirror in endgame and die +## Also, try to lock door after oiling it n seed 1838473132 in @@ -470,6 +471,7 @@ e # Everything to here is from endgame428 attack take oyster +find oyster lock lock oyster drop oyster diff --git a/tests/urntest2.chk b/tests/urntest2.chk index 0281f70..dd9d5d8 100644 --- a/tests/urntest2.chk +++ b/tests/urntest2.chk @@ -1164,6 +1164,14 @@ The way north is barred by a massive, rusty, iron door. The oil has freed up the hinges so that the door will now move, although it requires some effort. +> lock door + +OK + +> unlock door + +OK + > drop bottle OK @@ -2018,7 +2026,7 @@ There is nothing here with which to fill it. The urn is now dark. -You scored 267 out of a possible 430, using 341 turns. +You scored 267 out of a possible 430, using 343 turns. You have reached "Junior Master" status. diff --git a/tests/urntest2.log b/tests/urntest2.log index f909496..34a86b8 100644 --- a/tests/urntest2.log +++ b/tests/urntest2.log @@ -1,4 +1,5 @@ ## Test filling urn when you have no bottle +## Also, try to lock door after oiling it n seed 1838473132 in @@ -192,6 +193,8 @@ climb w n oil door +lock door +unlock door drop bottle n take trident -- 2.31.1