From: Eric S. Raymond Date: Sun, 18 Jun 2017 15:14:44 +0000 (-0400) Subject: Improve test coverage. X-Git-Tag: 1.1~257 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=23cc7b45beda67b07365f428d0863db7744c0b45;p=open-adventure.git Improve test coverage. --- diff --git a/tests/illformed.chk b/tests/illformed.chk index aae4dba..2ff2740 100644 --- a/tests/illformed.chk +++ b/tests/illformed.chk @@ -156,6 +156,10 @@ OK The bottle of water is now empty. +> fill bottle + +Your bottle is now full of water. + > throw axe I see no axe here. @@ -261,6 +265,14 @@ I'm afraid I don't understand. What do you want to do with the grate? +> pour bottle + +Your bottle is empty and the ground is wet. + +> fill bottle + +Your bottle is now full of water. + > building I don't know how to apply that word here. @@ -275,6 +287,10 @@ There is a shiny brass lamp nearby. Your lamp is now on. +> pour bottle + +Your bottle is empty and the ground is wet. + > xyzzy >>Foof!<< @@ -349,7 +365,7 @@ Okay, "BOO". > score -You have garnered 27 out of a possible 430 points, using 68 turns. +You have garnered 27 out of a possible 430 points, using 72 turns. > quit keys @@ -363,7 +379,7 @@ Do you really want to quit now? OK -You scored 27 out of a possible 430, using 70 turns. +You scored 27 out of a possible 430, using 74 turns. You are obviously a rank amateur. Better luck next time. diff --git a/tests/illformed.log b/tests/illformed.log index a234022..5acc112 100644 --- a/tests/illformed.log +++ b/tests/illformed.log @@ -29,6 +29,7 @@ carry blast take bottle drink water +fill bottle throw axe throw knife lock @@ -55,8 +56,11 @@ brief frob grate read grate grate +pour bottle +fill bottle building on +pour bottle xyzzy take rod wave rod diff --git a/tests/urntest.chk b/tests/urntest.chk index a6bee9d..7376d1b 100644 --- a/tests/urntest.chk +++ b/tests/urntest.chk @@ -1985,8 +1985,13 @@ I'm afraid I don't understand. The urn is now dark. +> fly -You scored 267 out of a possible 430, using 333 turns. +If you mean to use the persian rug, it does not appear inclined to +cooperate. + + +You scored 267 out of a possible 430, using 334 turns. You have reached "Junior Master" status. diff --git a/tests/urntest.log b/tests/urntest.log index f0c2a2c..52e2347 100644 --- a/tests/urntest.log +++ b/tests/urntest.log @@ -336,3 +336,4 @@ light urn fill urn read urn extinguish urn +fly