From e8e84a24a60e05f8e2e915bbb96ac4ca4187dfee Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 23 Jun 2017 23:30:17 -0400 Subject: [PATCH] Improve test coverage. --- tests/vending.chk | 10 +++++++++- tests/vending.log | 2 ++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/vending.chk b/tests/vending.chk index 56b48bc..27a90da 100644 --- a/tests/vending.chk +++ b/tests/vending.chk @@ -267,6 +267,10 @@ Dead end There is a massive and somewhat battered vending machine here. The instructions on it read: "Drop coins here to receive fresh batteries." +> read machine + +"Drop coins here to receive fresh batteries." + > drop coins There are fresh batteries here. @@ -275,12 +279,16 @@ There are fresh batteries here. OK +> read machine + +"Drop coins here to receive fresh batteries." + > throw batteries OK -You scored 75 out of a possible 430, using 50 turns. +You scored 75 out of a possible 430, using 52 turns. Your score qualifies you as a novice class adventurer. diff --git a/tests/vending.log b/tests/vending.log index 28f1482..410cb50 100644 --- a/tests/vending.log +++ b/tests/vending.log @@ -48,6 +48,8 @@ s sw se s +read machine drop coins take batteries +read machine throw batteries -- 2.31.1