From d0f943f4fb95d88e5c747f062dcb61b1fac44b9a Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 14 Jun 2017 06:41:04 -0400 Subject: [PATCH] Extend test coverage to novice mode. --- tests/illformed.chk | 21 +++++++++++++++++---- tests/illformed.log | 2 +- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/tests/illformed.chk b/tests/illformed.chk index 2e51eb9..de94d8b 100644 --- a/tests/illformed.chk +++ b/tests/illformed.chk @@ -7,7 +7,20 @@ Please answer the question. Welcome to Adventure!! Would you like instructions? -> n +> y + +Somewhere nearby is Colossal Cave, where others have found fortunes in +treasure and gold, though it is rumored that some who enter are never +seen again. Magic is said to work in the cave. I will be your eyes +and hands. Direct me with commands of 1 or 2 words. I should warn +you that I look at only the first five letters of each word, so you'll +have to enter "northeast" as "ne" to distinguish it from "north". +You can type "help" for some general hints. For information on how +to end your adventure, scoring, etc., type "info". + - - - +This program was originally developed by Willie Crowther. Most of the +features of the current program were added by Don Woods. Contact Don +if you have any questions, comments, etc. You are standing at the end of a road before a small brick building. Around you is a forest. A small stream flows out of the building and @@ -275,7 +288,7 @@ Okay, "BOO". > score -You have garnered 32 out of a possible 430 points, using 53 turns. +You have garnered 27 out of a possible 430 points, using 53 turns. > quit @@ -285,8 +298,8 @@ Do you really want to quit now? OK -You scored 32 out of a possible 430, using 54 turns. +You scored 27 out of a possible 430, using 54 turns. You are obviously a rank amateur. Better luck next time. -To achieve the next higher rating, you need 14 more points. +To achieve the next higher rating, you need 19 more points. diff --git a/tests/illformed.log b/tests/illformed.log index 555d4db..02cddaa 100644 --- a/tests/illformed.log +++ b/tests/illformed.log @@ -1,6 +1,6 @@ ## Test for various cases not found in walkthroughs. foo -n +y seed 1801426495 cave listen -- 2.31.1