From: Eric S. Raymond Date: Tue, 6 Jun 2017 04:54:56 +0000 (-0400) Subject: In tests, exercise the "go back" code. X-Git-Tag: 1.1~615 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=7130265578899d9c7de36b390cd2cd8889a655b3;p=open-adventure.git In tests, exercise the "go back" code. --- diff --git a/tests/illformed.chk b/tests/illformed.chk index f00ed12..2b86170 100644 --- a/tests/illformed.chk +++ b/tests/illformed.chk @@ -165,9 +165,23 @@ can now save a game and resume it at once (formerly you had to wait a while first), but it now costs you a few points each time you save the game. Saved games are now stored in much smaller files than before. +> go back + +>>Foof!<< + +You're inside building. + +There are some keys on the ground here. + +There is a lamp shining nearby. + +There is food here. + +There is a bottle of water here. + > score -You have garnered 32 out of a possible 430 points, using 31 turns. +You have garnered 32 out of a possible 430 points, using 32 turns. > quit @@ -177,7 +191,7 @@ Do you really want to quit now? OK -You scored 32 out of a possible 430, using 32 turns. +You scored 32 out of a possible 430, using 33 turns. You are obviously a rank amateur. Better luck next time. diff --git a/tests/illformed.log b/tests/illformed.log index 76b0804..9e73873 100644 --- a/tests/illformed.log +++ b/tests/illformed.log @@ -33,6 +33,7 @@ n read look news +go back score quit yes