Improve test coverage.
authorEric S. Raymond <esr@thyrsus.com>
Fri, 16 Jun 2017 19:27:25 +0000 (15:27 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Fri, 16 Jun 2017 19:27:25 +0000 (15:27 -0400)
tests/illformed.chk
tests/illformed.log
tests/weirdbird.chk
tests/weirdbird.log

index de94d8b99639b8eaae84f0e1c162679861c56a56..3730e9f65f2bf2c96ed024529b8f37c8a03f3510 100644 (file)
@@ -67,6 +67,10 @@ things.  I cannot tell you where remote things are.
 I can only tell you what you see as you move about and manipulate
 things.  I cannot tell you where remote things are.
 
 I can only tell you what you see as you move about and manipulate
 things.  I cannot tell you where remote things are.
 
+> nothing
+
+OK
+
 > in
 
 You are inside a building, a well house for a large spring.
 > in
 
 You are inside a building, a well house for a large spring.
@@ -278,6 +282,10 @@ There is a bottle of water here.
 
 Watch it!
 
 
 Watch it!
 
+> walk
+
+Where?
+
 > fly
 
 Though you flap your arms furiously, it is to no avail.
 > fly
 
 Though you flap your arms furiously, it is to no avail.
@@ -288,7 +296,11 @@ Okay, "BOO".
 
 > score
 
 
 > score
 
-You have garnered 27 out of a possible 430 points, using 53 turns.
+You have garnered 27 out of a possible 430 points, using 55 turns.
+
+> quit bottle
+
+Huh?
 
 > quit
 
 
 > quit
 
@@ -298,7 +310,7 @@ Do you really want to quit now?
 
 OK
 
 
 OK
 
-You scored 27 out of a possible 430, using 54 turns.
+You scored 27 out of a possible 430, using 57 turns.
 
 You are obviously a rank amateur.  Better luck next time.
 
 
 You are obviously a rank amateur.  Better luck next time.
 
index 02cddaa574fc1292d21385d7aafb7f01f86f5d31..31c1669d60df5cf3d6bb3afaa5433d254863e88a 100644 (file)
@@ -9,6 +9,7 @@ eat
 drink
 find keys
 inven keys
 drink
 find keys
 inven keys
+nothing
 in
 listen
 keys
 in
 listen
 keys
@@ -53,8 +54,10 @@ look
 news
 go back
 fuck
 news
 go back
 fuck
+walk
 fly
 say boo
 score
 fly
 say boo
 score
+quit bottle
 quit
 yes
 quit
 yes
index 9dd30363afca5140b7652dfa7fc1915e96d72152..b2b74d8d26d2f8835c572b8d1ee15b030b52b28b 100644 (file)
@@ -36,17 +36,17 @@ OK
 
 You're in front of building.
 
 
 You're in front of building.
 
-> s
+> go s
 
 You are in a valley in the forest beside a stream tumbling along a
 rocky bed.
 
 
 You are in a valley in the forest beside a stream tumbling along a
 rocky bed.
 
-> s
+> walk s
 
 At your feet all the water of the stream splashes into a 2-inch slit
 in the rock.  Downstream the streambed is bare rock.
 
 
 At your feet all the water of the stream splashes into a 2-inch slit
 in the rock.  Downstream the streambed is bare rock.
 
-> s
+> travel s
 
 You are in a 20-foot depression floored with bare dirt.  Set into the
 dirt is a strong steel grate mounted in concrete.  A dry streambed
 
 You are in a 20-foot depression floored with bare dirt.  Set into the
 dirt is a strong steel grate mounted in concrete.  A dry streambed
@@ -127,6 +127,10 @@ from east and west sides of the chamber.
 
 A cheerful little bird is sitting here singing.
 
 
 A cheerful little bird is sitting here singing.
 
+> listen bird
+
+I'm afraid I don't understand.
+
 > eat bird
 
 I think I just lost my appetite.
 > eat bird
 
 I think I just lost my appetite.
@@ -141,7 +145,7 @@ have no bird seed.
 The little bird is now dead.  Its body disappears.
 
 
 The little bird is now dead.  Its body disappears.
 
 
-You scored 32 out of a possible 430, using 24 turns.
+You scored 32 out of a possible 430, using 25 turns.
 
 You are obviously a rank amateur.  Better luck next time.
 
 
 You are obviously a rank amateur.  Better luck next time.
 
index 801a991e8ad656a77e9f9c664af295159e4a5c23..168067d8824b78b4d943e18b41212a0c75f55b01 100644 (file)
@@ -5,9 +5,9 @@ in
 take lamp
 take keys
 out
 take lamp
 take keys
 out
-s
-s
-s
+go s
+walk s
+travel s
 attack grate
 unlock grate
 lock grate
 attack grate
 unlock grate
 lock grate
@@ -22,6 +22,7 @@ on lamp
 read
 w
 w
 read
 w
 w
+listen bird
 eat bird
 feed bird
 attack bird
 eat bird
 feed bird
 attack bird