From: Eric S. Raymond Date: Tue, 13 Jun 2017 14:57:03 +0000 (-0400) Subject: More test coverage. X-Git-Tag: 1.1~352 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=95e8752252d7dccea922c57fa10ef816643e5d70;p=open-adventure.git More test coverage. --- diff --git a/tests/weirdbird.chk b/tests/weirdbird.chk index 01b1168..d7020e4 100644 --- a/tests/weirdbird.chk +++ b/tests/weirdbird.chk @@ -123,6 +123,10 @@ from east and west sides of the chamber. A cheerful little bird is sitting here singing. +> eat bird + +I think I just lost my appetite. + > feed bird It's not hungry (it's merely pinin' for the fjords). Besides, you @@ -133,7 +137,7 @@ have no bird seed. The little bird is now dead. Its body disappears. -You scored 32 out of a possible 430, using 22 turns. +You scored 32 out of a possible 430, using 23 turns. You are obviously a rank amateur. Better luck next time. diff --git a/tests/weirdbird.log b/tests/weirdbird.log index 26fe146..64831f3 100644 --- a/tests/weirdbird.log +++ b/tests/weirdbird.log @@ -21,5 +21,6 @@ on lamp read w w +eat bird feed bird attack bird diff --git a/tests/woodshint.chk b/tests/woodshint.chk index d9d32c1..69a4f9d 100644 --- a/tests/woodshint.chk +++ b/tests/woodshint.chk @@ -12,6 +12,26 @@ Seed set to 2099333241 You're in front of building. +> in + +You are inside a building, a well house for a large spring. + +There are some keys on the ground here. + +There is a shiny brass lamp nearby. + +There is food here. + +There is a bottle of water here. + +> eat + +Thank you, it was delicious! + +> out + +You're in front of building. + > n You are wandering aimlessly through the forest. @@ -101,6 +121,10 @@ You are wandering aimlessly through the forest. You are wandering aimlessly through the forest. +> drink + +Drink what? + > e You are wandering aimlessly through the forest. @@ -149,9 +173,11 @@ You are wandering aimlessly through the forest. You are wandering aimlessly through the forest. +Would you like to be shown out of the forest? + > e -You are wandering aimlessly through the forest. +Please answer the question. Would you like to be shown out of the forest? @@ -173,7 +199,7 @@ Go east ten times. If that doesn't get you out, then go south, then west twice, then south. -You scored 30 out of a possible 430, using 34 turns. +You scored 30 out of a possible 430, using 37 turns. You are obviously a rank amateur. Better luck next time. diff --git a/tests/woodshint.log b/tests/woodshint.log index e28d720..de39dbc 100644 --- a/tests/woodshint.log +++ b/tests/woodshint.log @@ -1,6 +1,10 @@ ## Test hinting logic - elicit forest hint +# Also some tests of intransitive-verb cases n seed 2099333241 +in +eat +out n e n @@ -22,6 +26,7 @@ e e e e +drink e e e