From: Eric S. Raymond Date: Sun, 18 Jun 2017 15:36:03 +0000 (-0400) Subject: Improve test coverage. X-Git-Tag: 1.1~256 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=957c78d0c213f74fef1d65dc1f6f91eeea10e536;p=open-adventure.git Improve test coverage. --- diff --git a/tests/defeat.chk b/tests/defeat.chk index 04723da..19700af 100644 --- a/tests/defeat.chk +++ b/tests/defeat.chk @@ -2923,7 +2923,7 @@ OK You're at ne end. -> blast +> blast rod There is a loud explosion, and a twenty-foot hole appears in the far wall, burying the snakes in the rubble. A river of molten lava pours diff --git a/tests/defeat.log b/tests/defeat.log index 0b89954..54b699b 100644 --- a/tests/defeat.log +++ b/tests/defeat.log @@ -469,4 +469,4 @@ sw take rod drop rod ne -blast +blast rod diff --git a/tests/illformed.chk b/tests/illformed.chk index 2ff2740..5163971 100644 --- a/tests/illformed.chk +++ b/tests/illformed.chk @@ -228,10 +228,26 @@ I'm game. Would you care to explain how? I'm game. Would you care to explain how? +> pour keys + +You can't pour that. + > throw keys OK +> foo up + +There is no way to go that direction. + +You're inside building. + +There are some keys on the ground here. + +There is a shiny brass lamp nearby. + +There is food here. + > eat food Thank you, it was delicious! @@ -365,7 +381,7 @@ Okay, "BOO". > score -You have garnered 27 out of a possible 430 points, using 72 turns. +You have garnered 27 out of a possible 430 points, using 74 turns. > quit keys @@ -379,7 +395,7 @@ Do you really want to quit now? OK -You scored 27 out of a possible 430, using 74 turns. +You scored 27 out of a possible 430, using 76 turns. You are obviously a rank amateur. Better luck next time. diff --git a/tests/illformed.log b/tests/illformed.log index 5acc112..4a0443c 100644 --- a/tests/illformed.log +++ b/tests/illformed.log @@ -47,7 +47,9 @@ wake keys take keys feed keys fly keys +pour keys throw keys +foo up eat food drink blood drink keys diff --git a/tests/mazehint.chk b/tests/mazehint.chk index 4d2e360..02b315d 100644 --- a/tests/mazehint.chk +++ b/tests/mazehint.chk @@ -28,7 +28,7 @@ There is a bottle of water here. OK -> xyzzy +> say xyzzy >>Foof!<< diff --git a/tests/mazehint.log b/tests/mazehint.log index a9e923e..454b4f9 100644 --- a/tests/mazehint.log +++ b/tests/mazehint.log @@ -3,7 +3,7 @@ n seed 1071883378 in take lamp -xyzzy +say xyzzy take rod e take cage diff --git a/tests/urntest.chk b/tests/urntest.chk index 7376d1b..c72129c 100644 --- a/tests/urntest.chk +++ b/tests/urntest.chk @@ -1965,6 +1965,10 @@ down, but a small ledge can be seen to the west across the chasm. A small urn is embedded in the rock. +> light urn + +The urn is empty and will not light. + > fill urn Your bottle is now empty and the urn is full of oil. @@ -1991,7 +1995,7 @@ If you mean to use the persian rug, it does not appear inclined to cooperate. -You scored 267 out of a possible 430, using 334 turns. +You scored 267 out of a possible 430, using 335 turns. You have reached "Junior Master" status. diff --git a/tests/urntest.log b/tests/urntest.log index 52e2347..effc3cd 100644 --- a/tests/urntest.log +++ b/tests/urntest.log @@ -330,9 +330,10 @@ w n n n +# Everything to here copied from endgame428 +light urn fill urn light urn -# Everything to here copied from endgame428 fill urn read urn extinguish urn