From: Eric S. Raymond Date: Fri, 16 Jun 2017 13:31:37 +0000 (-0400) Subject: Improve test coverage. X-Git-Tag: 1.1~289^2~2 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=349c51793cd61f20b9307d5e7eb502e3861bd538;p=open-adventure.git Improve test coverage. --- diff --git a/tests/lockchain.chk b/tests/lockchain.chk index 1284a8c..4dad314 100644 --- a/tests/lockchain.chk +++ b/tests/lockchain.chk @@ -1592,6 +1592,10 @@ The way north leads through a massive, rusty, iron door. You can't carry anything more. You'll have to drop something first. +> pour bottle + +Bottl what? + > n You're in cavern with waterfall. @@ -1663,7 +1667,7 @@ The bear is locked to the wall with a golden chain! The axe misses and lands near the bear where you can't get at it. -> feed bear +> throw food The bear eagerly wolfs down your food, after which he seems to calm down considerably and even becomes rather friendly. @@ -1699,7 +1703,7 @@ Glistening pearl You are being followed by a very large, tame bear. -You scored 225 out of a possible 430, using 293 turns. +You scored 225 out of a possible 430, using 294 turns. You may now consider yourself a "Seasoned Adventurer". diff --git a/tests/lockchain.log b/tests/lockchain.log index 26ae2d3..d2d337c 100644 --- a/tests/lockchain.log +++ b/tests/lockchain.log @@ -276,7 +276,9 @@ climb w get eggs n +# Test for "Ground wet" message take bottle +pour bottle n w d @@ -289,7 +291,7 @@ ne barren in throw axe -feed bear +throw food take chain unlock chain # Also tests message from bear in inventory diff --git a/tests/weirdbird.chk b/tests/weirdbird.chk index d7020e4..9dd3036 100644 --- a/tests/weirdbird.chk +++ b/tests/weirdbird.chk @@ -96,6 +96,10 @@ It is now pitch dark. If you proceed you will likely fall into a pit. Read what? +> read keys + +I see no keys here. + > on lamp Your lamp is now on. @@ -137,7 +141,7 @@ have no bird seed. The little bird is now dead. Its body disappears. -You scored 32 out of a possible 430, using 23 turns. +You scored 32 out of a possible 430, using 24 turns. You are obviously a rank amateur. Better luck next time. diff --git a/tests/weirdbird.log b/tests/weirdbird.log index 64831f3..801a991 100644 --- a/tests/weirdbird.log +++ b/tests/weirdbird.log @@ -17,6 +17,7 @@ w take cage w read +read keys on lamp read w