From: Aaron Traas Date: Mon, 19 Jun 2017 20:07:35 +0000 (-0400) Subject: Test coverage - failure to fill X-Git-Tag: 1.1~205^2~1 X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=commitdiff_plain;h=7ae0782b2507ebed265e9bd2bb8db6b1ac062411 Test coverage - failure to fill --- diff --git a/tests/fillfail.chk b/tests/fillfail.chk new file mode 100644 index 0000000..48835ed --- /dev/null +++ b/tests/fillfail.chk @@ -0,0 +1,57 @@ + +Welcome to Adventure!! Would you like instructions? + +> n + +You are standing at the end of a road before a small brick building. +Around you is a forest. A small stream flows out of the building and +down a gully. + +> in + +You are inside a building, a well house for a large spring. + +There are some keys on the ground here. + +There is a shiny brass lamp nearby. + +There is food here. + +There is a bottle of water here. + +> carry lamp + +OK + +> carry bottle + +OK + +> fill bottle + +Your bottle is already full. + +> drink + +The bottle of water is now empty. + +> xyzzy + +>>Foof!<< + +It is now pitch dark. If you proceed you will likely fall into a pit. + +> fill lamp + +You can't fill that. + +> fill bottle + +There is nothing here with which to fill the bottle. + + +You scored 32 out of a possible 430, using 8 turns. + +You are obviously a rank amateur. Better luck next time. + +To achieve the next higher rating, you need 14 more points. diff --git a/tests/fillfail.log b/tests/fillfail.log new file mode 100644 index 0000000..5fa485d --- /dev/null +++ b/tests/fillfail.log @@ -0,0 +1,10 @@ +## Attempt to fill lamp, attempt to fill bottle with no source +n +in +carry lamp +carry bottle +fill bottle +drink +xyzzy +fill lamp +fill bottle \ No newline at end of file diff --git a/tests/intransitivecarry.log b/tests/intransitivecarry.log index 24ebc2b..640a296 100644 --- a/tests/intransitivecarry.log +++ b/tests/intransitivecarry.log @@ -1,4 +1,4 @@ -## Drink unknown +## Carry when only one object is present n in carry lamp