Improve test coverage.

This commit is contained in:
Eric S. Raymond 2017-06-18 07:41:40 -04:00
parent f704580d89
commit 9e1143e780
4 changed files with 21 additions and 10 deletions

View file

@ -2028,7 +2028,7 @@ A brilliant blue star sapphire is here!
OK
> fly rug
> fly
The rug ferries you back across the chasm.

View file

@ -341,7 +341,7 @@ drop rug
drop emerald
fly rug
take sapphire
fly rug
fly
take emerald
drop ruby
take rug

View file

@ -127,6 +127,14 @@ Carry what?
Blasting requires dynamite.
> take bottle
OK
> drink water
The bottle of water is now empty.
> throw axe
I see no axe here.
@ -163,6 +171,10 @@ I see no urn here.
Don't be ridiculous!
> discard keys
You aren't carrying it!
> drink keys
Don't be ridiculous!
@ -238,8 +250,6 @@ There are some keys on the ground here.
There is a shiny brass lamp nearby.
There is a bottle of water here.
> on
Your lamp is now on.
@ -300,8 +310,6 @@ There are some keys on the ground here.
There is a lamp shining nearby.
There is a bottle of water here.
> fuck
Watch it!
@ -320,9 +328,9 @@ Okay, "BOO".
> score
You have garnered 27 out of a possible 430 points, using 61 turns.
You have garnered 27 out of a possible 430 points, using 64 turns.
> quit bottle
> quit keys
Huh?
@ -334,7 +342,7 @@ Do you really want to quit now?
OK
You scored 27 out of a possible 430, using 63 turns.
You scored 27 out of a possible 430, using 66 turns.
You are obviously a rank amateur. Better luck next time.

View file

@ -22,6 +22,8 @@ find foo
find bar
carry
blast
take bottle
drink water
throw axe
throw knife
lock
@ -31,6 +33,7 @@ attack
unlock chain
fill urn
eat keys
discard keys
drink keys
off keys
break keys
@ -64,6 +67,6 @@ walk
fly
say boo
score
quit bottle
quit keys
quit
yes