From 1a4bf3abcdea13c97d117d7c5ac82d31ff41ba03 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 11 Jun 2017 16:18:03 -0400 Subject: [PATCH] Improved test coverage. --- tests/illformed.chk | 18 ++++++++++++++---- tests/illformed.log | 3 +++ 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/tests/illformed.chk b/tests/illformed.chk index 790e4bc..19a64d3 100644 --- a/tests/illformed.chk +++ b/tests/illformed.chk @@ -113,6 +113,10 @@ There is nothing here with a lock! Throw what? +> attack + +There is nothing here to attack. + > unlock chain I see no chain here. @@ -125,6 +129,14 @@ I see no urn here. Don't be ridiculous! +> off keys + +I'm afraid I don't understand. + +> eat food + +Thank you, it was delicious! + > drink blood I see no blood here. @@ -194,8 +206,6 @@ 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. > fuck @@ -212,7 +222,7 @@ Okay, "BOO". > score -You have garnered 32 out of a possible 430 points, using 39 turns. +You have garnered 32 out of a possible 430 points, using 42 turns. > quit @@ -222,7 +232,7 @@ Do you really want to quit now? OK -You scored 32 out of a possible 430, using 40 turns. +You scored 32 out of a possible 430, using 43 turns. You are obviously a rank amateur. Better luck next time. diff --git a/tests/illformed.log b/tests/illformed.log index 979f58d..de5bf2a 100644 --- a/tests/illformed.log +++ b/tests/illformed.log @@ -22,9 +22,12 @@ throw knife lock unlock throw +attack unlock chain fill urn eat keys +off keys +eat food drink blood brief on -- 2.31.1