From 7493b26e6cfa3005fb084dce46dfd10ff57e30cc Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 13 Jun 2017 13:36:27 -0400 Subject: [PATCH] Improve test coverage. --- tests/weirddwarf.chk | 6 +++- tests/weirddwarf.log | 1 + tests/woodshint.chk | 84 +++++++++++++++++++++++++++++++++++++------- tests/woodshint.log | 12 ++++++- 4 files changed, 89 insertions(+), 14 deletions(-) diff --git a/tests/weirddwarf.chk b/tests/weirddwarf.chk index 23adae3..84731c2 100644 --- a/tests/weirddwarf.chk +++ b/tests/weirddwarf.chk @@ -493,6 +493,10 @@ I'm afraid I don't understand. You fool, dwarves eat only coal! Now you've made him *REALLY* mad!! +> carry + +Carry what? + > carry dwarf You can't be serious! @@ -506,7 +510,7 @@ With what? Your bare hands? Feed what? -You scored 103 out of a possible 430, using 86 turns. +You scored 103 out of a possible 430, using 87 turns. Your score qualifies you as a novice class adventurer. diff --git a/tests/weirddwarf.log b/tests/weirddwarf.log index c6d6521..70c6e53 100644 --- a/tests/weirddwarf.log +++ b/tests/weirddwarf.log @@ -86,6 +86,7 @@ s # The actual test - rest was just setup. read dwarf feed dwarf +carry carry dwarf attack feed diff --git a/tests/woodshint.chk b/tests/woodshint.chk index 69a4f9d..b211862 100644 --- a/tests/woodshint.chk +++ b/tests/woodshint.chk @@ -121,9 +121,49 @@ You are wandering aimlessly through the forest. You are wandering aimlessly through the forest. -> drink +> drop -Drink what? +Drop what? + +> say + +Okay, "SAY". + +> wave + +Wave what? + +> calm + +Calm what? + +> walk + +Where? + +> pour + +You aren't carrying it! + +> rub + +Rub what? + +> find + +Find what? + +> fill + +Fill what? + +> break + +Break what? + +> wake + +Wake what? > e @@ -133,45 +173,65 @@ You are wandering aimlessly through the forest. You are wandering aimlessly through the forest. +Would you like to be shown out of the forest? + > e -You are wandering aimlessly through the forest. +Please answer the question. + +Would you like to be shown out of the forest? > e -You are wandering aimlessly through the forest. +Please answer the question. + +Would you like to be shown out of the forest? > e -You are wandering aimlessly through the forest. +Please answer the question. + +Would you like to be shown out of the forest? > e -You are wandering aimlessly through the forest. +Please answer the question. + +Would you like to be shown out of the forest? > e -You are wandering aimlessly through the forest. +Please answer the question. + +Would you like to be shown out of the forest? > e -You are wandering aimlessly through the forest. +Please answer the question. + +Would you like to be shown out of the forest? > e -You are wandering aimlessly through the forest. +Please answer the question. + +Would you like to be shown out of the forest? > e -You are wandering aimlessly through the forest. +Please answer the question. + +Would you like to be shown out of the forest? > e -You are wandering aimlessly through the forest. +Please answer the question. + +Would you like to be shown out of the forest? > e -You are wandering aimlessly through the forest. +Please answer the question. Would you like to be shown out of the forest? diff --git a/tests/woodshint.log b/tests/woodshint.log index de39dbc..11b1d13 100644 --- a/tests/woodshint.log +++ b/tests/woodshint.log @@ -26,7 +26,17 @@ e e e e -drink +drop +say +wave +calm +walk +pour +rub +find +fill +break +wake e e e -- 2.31.1