Test coverage - Almost all of score.c
[open-adventure.git] / tests / illformed.chk
index 279f06f4a71fe9bffc7897dcdb451f7f2af9327a..4ee86fd3c62b9658c6e4f31d7b148cf72d2a668a 100644 (file)
@@ -7,7 +7,20 @@ Please answer the question.
 
 Welcome to Adventure!!  Would you like instructions?
 
-> n
+> y
+
+Somewhere nearby is Colossal Cave, where others have found fortunes in
+treasure and gold, though it is rumored that some who enter are never
+seen again.  Magic is said to work in the cave.  I will be your eyes
+and hands.  Direct me with commands of 1 or 2 words.  I should warn
+you that I look at only the first five letters of each word, so you'll
+have to enter "northeast" as "ne" to distinguish it from "north".
+You can type "help" for some general hints.  For information on how
+to end your adventure, scoring, etc., type "info".
+                             - - -
+This program was originally developed by Willie Crowther.  Most of the
+features of the current program were added by Don Woods.  Contact Don
+if you have any questions, comments, etc.
 
 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
@@ -18,17 +31,108 @@ Seed set to 1801426495
 
 You're in front of building.
 
+> eat grate
+
+You're in front of building.
+
+> 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.
+
+> throw food
+
+You aren't carrying it!
+
+> nothing food
+
+OK
+
+> calm food
+
+I'm game.  Would you care to explain how?
+
+> walk food
+
+Where?
+
+> score food
+
+Huh?
+
+> foo food
+
+I don't know how.
+
+> brief food
+
+On what?
+
+> blast food
+
+Blasting requires dynamite.
+
+> suspend food
+
+Huh?
+
+> resume food
+
+Huh?
+
+> out
+
+You're in front of building.
+
+> stream
+
+You are in a valley in the forest beside a stream tumbling along a
+rocky bed.
+
+> lock
+
+There is nothing here with a lock!
+
+> take water
+
+You have nothing in which to carry it.
+
+> building
+
+You're in front of building.
+
 > cave
 
 I don't know where the cave is, but hereabouts no stream can run on
 the surface for long.  I would try the stream.
 
-You're in front of building.
+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.
+
+> enter stream
+
+Your feet are now wet.
+
+> try three words
+
+Please stick to 1- and 2-word commands.
 
 > listen
 
 The stream is gurgling placidly.
 
+> carry
+
+Carry what?
+
 > forward
 
 I am unsure how you are facing.  Use compass points or nearby objects.
@@ -44,14 +148,27 @@ Eat what?
 You have taken a drink from the stream.  The water tastes strongly of
 minerals, but is not unpleasant.  It is extremely cold.
 
+> throw keys
+
+I see no keys here.
+
 > find keys
 
 I can only tell you what you see as you move about and manipulate
 things.  I cannot tell you where remote things are.
 
+> inven keys
+
+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.
+You're inside building.
 
 There are some keys on the ground here.
 
@@ -93,6 +210,18 @@ Carry what?
 
 Blasting requires dynamite.
 
+> take bottle
+
+OK
+
+> drink water
+
+The bottle of water is now empty.
+
+> fill bottle
+
+Your bottle is now full of water.
+
 > throw axe
 
 I see no axe here.
@@ -129,6 +258,14 @@ I see no urn here.
 
 Don't be ridiculous!
 
+> discard keys
+
+You aren't carrying it!
+
+> drink keys
+
+Don't be ridiculous!
+
 > off keys
 
 I'm afraid I don't understand.
@@ -145,10 +282,34 @@ Don't be ridiculous!
 
 OK
 
+> feed keys
+
+I'm game.  Would you care to explain how?
+
+> fly keys
+
+I'm game.  Would you care to explain how?
+
+> pour keys
+
+You can't pour that.
+
 > throw keys
 
 OK
 
+> foo up
+
+There is no way to go that direction.
+
+You're inside building.
+
+There are some keys on the ground here.
+
+There is a shiny brass lamp nearby.
+
+There is food here.
+
 > eat food
 
 Thank you, it was delicious!
@@ -157,15 +318,57 @@ Thank you, it was delicious!
 
 I see no blood here.
 
+> drink keys
+
+Don't be ridiculous!
+
+> light keys
+
+I'm afraid I don't understand.
+
 > brief
 
 Okay, from now on I'll only describe a place in full the first time
 you come to it.  To get the full description, say "look".
 
+> frob grate
+
+Sorry, I don't know the word "FROB".
+
+> read grate
+
+I'm afraid I don't understand.
+
+> grate
+
+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.
+
+You're inside building.
+
+There are some keys on the ground here.
+
+There is a shiny brass lamp nearby.
+
 > on
 
 Your lamp is now on.
 
+> pour bottle
+
+Your bottle is empty and the ground is wet.
+
 > xyzzy
 
 >>Foof!<<
@@ -222,12 +425,14 @@ There are some keys on the ground here.
 
 There is a lamp shining nearby.
 
-There is a bottle of water here.
-
 > fuck
 
 Watch it!
 
+> walk
+
+Where?
+
 > fly
 
 Though you flap your arms furiously, it is to no avail.
@@ -238,7 +443,11 @@ Okay, "BOO".
 
 > score
 
-You have garnered 32 out of a possible 430 points, using 46 turns.
+You have garnered 27 out of a possible 430 points, using 87 turns.
+
+> quit keys
+
+Huh?
 
 > quit
 
@@ -248,8 +457,8 @@ Do you really want to quit now?
 
 OK
 
-You scored 32 out of a possible 430, using 47 turns.
+You scored 27 out of a possible 430, using 89 turns.
 
 You are obviously a rank amateur.  Better luck next time.
 
-To achieve the next higher rating, you need 14 more points.
+To achieve the next higher rating, you need 19 more points.