From 0d373a6b87e921d531851d37b8e29b12e4dd3f10 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 16 Jun 2017 15:27:25 -0400 Subject: [PATCH] Improve test coverage. --- tests/illformed.chk | 16 ++++++++++++++-- tests/illformed.log | 3 +++ tests/weirdbird.chk | 12 ++++++++---- tests/weirdbird.log | 7 ++++--- 4 files changed, 29 insertions(+), 9 deletions(-) diff --git a/tests/illformed.chk b/tests/illformed.chk index de94d8b..3730e9f 100644 --- a/tests/illformed.chk +++ b/tests/illformed.chk @@ -67,6 +67,10 @@ things. I cannot tell you where remote things are. I can only tell you what you see as you move about and manipulate things. I cannot tell you where remote things are. +> nothing + +OK + > in You are inside a building, a well house for a large spring. @@ -278,6 +282,10 @@ There is a bottle of water here. Watch it! +> walk + +Where? + > fly Though you flap your arms furiously, it is to no avail. @@ -288,7 +296,11 @@ Okay, "BOO". > score -You have garnered 27 out of a possible 430 points, using 53 turns. +You have garnered 27 out of a possible 430 points, using 55 turns. + +> quit bottle + +Huh? > quit @@ -298,7 +310,7 @@ Do you really want to quit now? OK -You scored 27 out of a possible 430, using 54 turns. +You scored 27 out of a possible 430, using 57 turns. You are obviously a rank amateur. Better luck next time. diff --git a/tests/illformed.log b/tests/illformed.log index 02cddaa..31c1669 100644 --- a/tests/illformed.log +++ b/tests/illformed.log @@ -9,6 +9,7 @@ eat drink find keys inven keys +nothing in listen keys @@ -53,8 +54,10 @@ look news go back fuck +walk fly say boo score +quit bottle quit yes diff --git a/tests/weirdbird.chk b/tests/weirdbird.chk index 9dd3036..b2b74d8 100644 --- a/tests/weirdbird.chk +++ b/tests/weirdbird.chk @@ -36,17 +36,17 @@ OK You're in front of building. -> s +> go s You are in a valley in the forest beside a stream tumbling along a rocky bed. -> s +> walk s At your feet all the water of the stream splashes into a 2-inch slit in the rock. Downstream the streambed is bare rock. -> s +> travel s You are in a 20-foot depression floored with bare dirt. Set into the dirt is a strong steel grate mounted in concrete. A dry streambed @@ -127,6 +127,10 @@ from east and west sides of the chamber. A cheerful little bird is sitting here singing. +> listen bird + +I'm afraid I don't understand. + > eat bird I think I just lost my appetite. @@ -141,7 +145,7 @@ have no bird seed. The little bird is now dead. Its body disappears. -You scored 32 out of a possible 430, using 24 turns. +You scored 32 out of a possible 430, using 25 turns. You are obviously a rank amateur. Better luck next time. diff --git a/tests/weirdbird.log b/tests/weirdbird.log index 801a991..168067d 100644 --- a/tests/weirdbird.log +++ b/tests/weirdbird.log @@ -5,9 +5,9 @@ in take lamp take keys out -s -s -s +go s +walk s +travel s attack grate unlock grate lock grate @@ -22,6 +22,7 @@ on lamp read w w +listen bird eat bird feed bird attack bird -- 2.31.1