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. You're in front of building.
> seed
This command requires a numeric argument.
You're in front of building.
> waste > waste
This command requires a numeric argument. This command requires a numeric argument.
You are standing at the end of a road before a small brick building. You're in front of building.
Around you is a forest. A small stream flows out of the building and
down a gully.
> eat grate > eat grate
@ -238,7 +230,9 @@ There is a bottle of water here.
> out > 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 > stream
@ -622,7 +616,7 @@ Okay, "boo".
> score > 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 > z
@ -630,7 +624,7 @@ OK
> score > 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 > quit keys

View file

@ -13,7 +13,6 @@ say rub
say grate say grate
_ _
back back
seed
waste waste
eat grate eat grate
23 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