From: Eric S. Raymond Date: Fri, 30 Jun 2017 16:05:38 +0000 (-0400) Subject: Improve test coverage. X-Git-Tag: takebird~181 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=2c410183587193f52a874633369032508724fdbb;p=open-adventure.git Improve test coverage. --- diff --git a/tests/defeat.chk b/tests/defeat.chk index a9de41e..c1ad5a3 100644 --- a/tests/defeat.chk +++ b/tests/defeat.chk @@ -951,7 +951,7 @@ fed by a stream, which tumbles out of a hole in the wall about 10 feet overhead and splashes noisily into the water somewhere within the mist. There is a passage going back toward the south. -> H'CFL +> say H'CFL The waters have parted to form a narrow path across the reservoir. diff --git a/tests/defeat.log b/tests/defeat.log index d0497e7..f8d47ab 100644 --- a/tests/defeat.log +++ b/tests/defeat.log @@ -154,7 +154,7 @@ u west u reservoir -H'CFL +say H'CFL n n nw diff --git a/tests/splatter.chk b/tests/splatter.chk index 9e88562..5b405a7 100644 --- a/tests/splatter.chk +++ b/tests/splatter.chk @@ -28,7 +28,7 @@ There is a bottle of water here. OK -> xyzzy +> say xyzzy >>Foof!<< @@ -234,7 +234,7 @@ a rock in the room's center. A hollow voice says "PLUGH". -> plugh +> say plugh >>Foof!<< @@ -266,7 +266,7 @@ OK OK -> plugh +> say plugh >>Foof!<< @@ -391,7 +391,7 @@ Your lamp is now off. It is now pitch dark. If you proceed you will likely fall into a pit. -> plugh +> say plugh >>Foof!<< @@ -506,7 +506,7 @@ There is a bottle of water here. OK -> plugh +> say plugh >>Foof!<< @@ -518,7 +518,7 @@ Your lamp is now on. You're at "Y2". -> plover +> say plover >>Foof!<< @@ -546,7 +546,7 @@ You're in Plover Room. There is an emerald here the size of a plover's egg! -> plover +> say plover >>Foof!<< @@ -799,7 +799,7 @@ Your lamp is now off. It is now pitch dark. If you proceed you will likely fall into a pit. -> plugh +> say plugh >>Foof!<< @@ -833,7 +833,7 @@ OK OK -> plugh +> say plugh >>Foof!<< @@ -1364,7 +1364,7 @@ Your lamp is now off. It is now pitch dark. If you proceed you will likely fall into a pit. -> plugh +> say plugh >>Foof!<< @@ -1420,7 +1420,7 @@ OK OK -> plugh +> say plugh >>Foof!<< @@ -1881,7 +1881,7 @@ Your lamp is now off. It is now pitch dark. If you proceed you will likely fall into a pit. -> plugh +> say plugh >>Foof!<< @@ -2176,7 +2176,7 @@ There is precious jewelry here! There are many coins here! -> plugh +> say plugh >>Foof!<< @@ -2322,7 +2322,7 @@ Your lamp is now off. It is now pitch dark. If you proceed you will likely fall into a pit. -> xyzzy +> say xyzzy >>Foof!<< @@ -2374,7 +2374,7 @@ OK OK -> plugh +> say plugh >>Foof!<< @@ -2593,7 +2593,7 @@ You're in n/s passage above e/w passage. You're at "Y2". -> plover +> say plover >>Foof!<< diff --git a/tests/splatter.log b/tests/splatter.log index 3602f02..2408bcd 100644 --- a/tests/splatter.log +++ b/tests/splatter.log @@ -1,10 +1,10 @@ -## Adventurer fall down go boom. +## Adventurer fall down go boom. Also tests 'say' verb on magic words. # Based on walkthrough at http://www.ecsoftwareconsulting.com/node/56 n seed 1838473132 in take lamp -xyzzy +say xyzzy on take rod e @@ -42,13 +42,13 @@ n d n n -plugh +say plugh extinguish lamp drop coins drop jewelry drop necklace drop gold -plugh +say plugh on s take silver @@ -67,7 +67,7 @@ d n n off -plugh +say plugh inven drop rug drop silver @@ -84,13 +84,13 @@ s n in take water -plugh +say plugh on -plover +say plover ne take pyramid s -plover +say plover s s take rod @@ -131,11 +131,11 @@ n n n off -plugh +say plugh drop ruby drop diamonds drop pyramid -plugh +say plugh on s s @@ -231,7 +231,7 @@ e u n off -plugh +say plugh drop pillow drop vase drop trident @@ -239,7 +239,7 @@ drop emerald drop ebony take keys take food -plugh +say plugh on s d @@ -319,7 +319,7 @@ e n n off -plugh +say plugh drop eggs drop pearl drop spices @@ -357,7 +357,7 @@ drop sapphire drop amber drop rug look -plugh +say plugh on s s @@ -384,10 +384,10 @@ d e e off -xyzzy +say xyzzy drop emerald drop chest -plugh +say plugh on s d @@ -418,7 +418,7 @@ u e u n -plover +say plover e e e