From 7130265578899d9c7de36b390cd2cd8889a655b3 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 6 Jun 2017 00:54:56 -0400 Subject: [PATCH] In tests, exercise the "go back" code. --- tests/illformed.chk | 18 ++++++++++++++++-- tests/illformed.log | 1 + 2 files changed, 17 insertions(+), 2 deletions(-) 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 -- 2.31.1