From 35a1aff8dcfc079e890780439f0968062d0c3eb8 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 18 Jun 2017 10:03:40 -0400 Subject: [PATCH] Improve test coverage. --- tests/mazehint.chk | 5 ----- tests/mazehint.log | 2 +- tests/weirdbird.chk | 30 ++++++++++++++++++++++++++++-- tests/weirdbird.log | 5 +++++ 4 files changed, 34 insertions(+), 8 deletions(-) diff --git a/tests/mazehint.chk b/tests/mazehint.chk index 4ad9864..4d2e360 100644 --- a/tests/mazehint.chk +++ b/tests/mazehint.chk @@ -7,11 +7,6 @@ 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 down a gully. -> seed 739688815 -Seed set to 739688815 - -You're in front of building. - > seed 1071883378 Seed set to 1071883378 diff --git a/tests/mazehint.log b/tests/mazehint.log index 0d54f5e..a9e923e 100644 --- a/tests/mazehint.log +++ b/tests/mazehint.log @@ -1,5 +1,5 @@ +## Elicit the maze hint. n -seed 739688815 seed 1071883378 in take lamp diff --git a/tests/weirdbird.chk b/tests/weirdbird.chk index 3f7e446..5a5af92 100644 --- a/tests/weirdbird.chk +++ b/tests/weirdbird.chk @@ -115,6 +115,10 @@ A three foot black rod with a rusty star on an end lies nearby. "MAGIC WORD XYZZY" +> take rod + +OK + > w You are in an awkward sloping east/west canyon. @@ -142,6 +146,28 @@ have no bird seed. > take bird +The bird seemed unafraid at first, but as you approach it becomes +disturbed and you cannot catch it. + +Are you trying to catch the bird? + +> y + +I am prepared to give you a hint, but it will cost you 2 points. + +Do you want the hint? + +> y + +Something about you seems to be frightening the bird. Perhaps you +might figure out what it is. + +> drop rod + +OK + +> take bird + OK > attack bird @@ -149,8 +175,8 @@ OK The little bird is now dead. Its body disappears. -You scored 32 out of a possible 430, using 26 turns. +You scored 30 out of a possible 430, using 29 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 16 more points. diff --git a/tests/weirdbird.log b/tests/weirdbird.log index fe9f967..5919f5a 100644 --- a/tests/weirdbird.log +++ b/tests/weirdbird.log @@ -20,10 +20,15 @@ read read keys on lamp read +take rod w w listen bird eat bird feed bird take bird +y +y +drop rod +take bird attack bird -- 2.31.1