From f704580d89a446c2fd314445e7757ac53dc24e55 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 18 Jun 2017 07:26:59 -0400 Subject: [PATCH] Improve test coverage. --- tests/fillvase.chk | 6 +++++- tests/fillvase.log | 4 +++- tests/urntest.chk | 8 +++++--- tests/urntest.log | 2 +- tests/vending.chk | 5 ----- tests/vending.log | 1 - 6 files changed, 14 insertions(+), 12 deletions(-) diff --git a/tests/fillvase.chk b/tests/fillvase.chk index 6555421..ee7c96a 100644 --- a/tests/fillvase.chk +++ b/tests/fillvase.chk @@ -1273,6 +1273,10 @@ There is a delicate, precious, ming vase here! OK +> fill vase + +There is nothing here with which to fill it. + > se There is a threatening little dwarf in the room with you! @@ -1419,7 +1423,7 @@ I'm afraid I don't understand. The sudden change in temperature has delicately shattered the vase. -You scored 191 out of a possible 430, using 233 turns. +You scored 191 out of a possible 430, using 234 turns. You may now consider yourself a "Seasoned Adventurer". diff --git a/tests/fillvase.log b/tests/fillvase.log index d5de162..9532d9d 100644 --- a/tests/fillvase.log +++ b/tests/fillvase.log @@ -213,6 +213,8 @@ take trident nw s take vase +# Inserted +fill vase se throw axe take axe @@ -232,7 +234,7 @@ n off plugh out -# Everything above this from endgame428 +# Everything not marked 'Inserted' above this from endgame428 inven stream read vase diff --git a/tests/urntest.chk b/tests/urntest.chk index 092f92d..a6bee9d 100644 --- a/tests/urntest.chk +++ b/tests/urntest.chk @@ -1109,8 +1109,6 @@ a small pool of oil in one corner of the pit. Your bottle is now full of oil. -> - > u You're at east end of Twopit Room. @@ -1975,6 +1973,10 @@ Your bottle is now empty and the urn is full of oil. The urn is now lit. +> fill urn + +The urn is already full of oil. + > read urn I'm afraid I don't understand. @@ -1984,7 +1986,7 @@ I'm afraid I don't understand. The urn is now dark. -You scored 267 out of a possible 430, using 332 turns. +You scored 267 out of a possible 430, using 333 turns. You have reached "Junior Master" status. diff --git a/tests/urntest.log b/tests/urntest.log index e0d4682..f0c2a2c 100644 --- a/tests/urntest.log +++ b/tests/urntest.log @@ -183,7 +183,6 @@ drop appendage e d get oil - u w d @@ -334,5 +333,6 @@ n fill urn light urn # Everything to here copied from endgame428 +fill urn read urn extinguish urn diff --git a/tests/vending.chk b/tests/vending.chk index b74c081..56b48bc 100644 --- a/tests/vending.chk +++ b/tests/vending.chk @@ -7,11 +7,6 @@ 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 368611969 -Seed set to 368611969 - -You're in front of building. - > seed 1635997320 Seed set to 1635997320 diff --git a/tests/vending.log b/tests/vending.log index a92dcf2..28f1482 100644 --- a/tests/vending.log +++ b/tests/vending.log @@ -1,6 +1,5 @@ ## Get batteries from the vending machine n -seed 368611969 seed 1635997320 in take lamp -- 2.31.1