Test coverage - drink with no valid object
authorAaron Traas <aaron@traas.org>
Mon, 19 Jun 2017 19:21:03 +0000 (15:21 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Mon, 19 Jun 2017 21:33:32 +0000 (17:33 -0400)
tests/drinkfail.chk [new file with mode: 0644]
tests/drinkfail.log [new file with mode: 0644]

diff --git a/tests/drinkfail.chk b/tests/drinkfail.chk
new file mode 100644 (file)
index 0000000..43f9e2c
--- /dev/null
@@ -0,0 +1,37 @@
+
+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.
+
+> xyzzy
+
+>>Foof!<<
+
+It is now pitch dark.  If you proceed you will likely fall into a pit.
+
+> drink
+
+Drink what?
+
+
+You scored 32 out of a possible 430, using 3 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/drinkfail.log b/tests/drinkfail.log
new file mode 100644 (file)
index 0000000..7beb35b
--- /dev/null
@@ -0,0 +1,5 @@
+## Drink unknown
+n
+in
+xyzzy
+drink