Factor out the test of the bare word "seed".

This commit is contained in:
Eric S. Raymond 2023-03-30 00:54:13 -04:00
parent 872b94f927
commit 30a98cc916
4 changed files with 31 additions and 13 deletions

View file

@ -73,19 +73,11 @@ Sorry, but I no longer seem to remember how it was you got here.
You're in front of building.
> seed
This command requires a numeric argument.
You're in front of building.
> waste
This command requires a numeric argument.
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.
You're in front of building.
> eat grate
@ -238,7 +230,9 @@ There is a bottle of water here.
> out
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.
> stream
@ -622,7 +616,7 @@ Okay, "boo".
> score
You have garnered 27 out of a possible 430 points, using 118 turns.
You have garnered 27 out of a possible 430 points, using 117 turns.
> z
@ -630,7 +624,7 @@ OK
> score
You have garnered 27 out of a possible 430 points, using 120 turns.
You have garnered 27 out of a possible 430 points, using 119 turns.
> quit keys

View file

@ -13,7 +13,6 @@ say rub
say grate
_
back
seed
waste
eat grate
23

21
tests/seedless.chk Normal file
View file

@ -0,0 +1,21 @@
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.
> seed
This command requires a numeric argument.
You're in front of building.
>
You scored 32 out of a possible 430, using 1 turn.
You are obviously a rank amateur. Better luck next time.
To achieve the next higher rating, you need 14 more points.

4
tests/seedless.log Normal file
View file

@ -0,0 +1,4 @@
# Check that argumentless seed command throws an error
#NOCOMPARE The word "seed" alone is mot recognized in advent430
n
seed