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 OK
> fly rug > fly
The rug ferries you back across the chasm. The rug ferries you back across the chasm.

View file

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

View file

@ -127,6 +127,14 @@ Carry what?
Blasting requires dynamite. Blasting requires dynamite.
> take bottle
OK
> drink water
The bottle of water is now empty.
> throw axe > throw axe
I see no axe here. I see no axe here.
@ -163,6 +171,10 @@ I see no urn here.
Don't be ridiculous! Don't be ridiculous!
> discard keys
You aren't carrying it!
> drink keys > drink keys
Don't be ridiculous! 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 shiny brass lamp nearby.
There is a bottle of water here.
> on > on
Your lamp is now 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 lamp shining nearby.
There is a bottle of water here.
> fuck > fuck
Watch it! Watch it!
@ -320,9 +328,9 @@ Okay, "BOO".
> score > 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? Huh?
@ -334,7 +342,7 @@ Do you really want to quit now?
OK 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. You are obviously a rank amateur. Better luck next time.

View file

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