Skip to content

Commit be407a9

Browse files
jkczyzdarosior
authored andcommitted
tests: Fix grammatical and consistency errors
1 parent fea555f commit be407a9

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/events/test-spec.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Format for Event-based Test Specifications.
1+
# Format for Event-based Test Specifications
22

33
The programmatic test cases for the spec are a tree of events and
44
expected responses which test various scenarios described in the
55
specification. They serve only as guidelines: in some cases a
66
compliant implementation might produce a different response than that
7-
given here, though that suggests further examination of the testcase,
7+
given here, though that suggests further examination of the test case,
88
the implementation, or both.
99

1010
## General Line Format
@@ -32,7 +32,7 @@ a `$` prefix. There's currently no scope to variables.
3232
Include lines pull in other files, which is helpful for complex tests.
3333

3434
Other lines are indented by multiples of 4 spaces; a line not indented
35-
by a multiple of 4 is be joined to the previous line (this allows
35+
by a multiple of 4 is to be joined with the previous line (this allows
3636
nicer formatting for long lines).
3737

3838
Each non-comment line indicates something to do to the implementation
@@ -46,7 +46,7 @@ STEP1->STEP2a->STEP3 and STEP1->STEP2b->STEP3:
4646
1. STEP2b
4747
2. STEP3
4848

49-
An step must either have NUMBER 1, in which case it follows directly
49+
A step must either have NUMBER 1, in which case it follows directly
5050
from the parent, or NUMBER one greater than the previous step at the
5151
same level, in which case it follows the previous.
5252

@@ -68,7 +68,7 @@ STEP1->STEP2a->STEP2c->STEP2b, STEP1->STEP2b->STEP2a->STEP2c,
6868
STEP1->STEP2b->STEP2c->STEP2a, STEP1->STEP2c->STEP2a->STEP2b,
6969
or STEP1->STEP2c->STEP2b->STEP2c.
7070

71-
The special marker `One of:` indicate sequences starting with distinct
71+
The special marker `One of:` indicates sequences starting with distinct
7272
output events, only one of which could occur. This is useful for optional
7373
outputs which are more constrained, eg:
7474

@@ -82,7 +82,7 @@ outputs which are more constrained, eg:
8282
This means the test will accept STEP1->STEP2a->STEP2b->STEP3, or
8383
STEP1->STEP2c->STEP3.
8484

85-
## Option specifiers
85+
## Option Specifiers
8686

8787
OPTION_SPEC := SPACE+ [`!`]OPTION_NAME
8888
OPTION_NAME := `opt`IDENTIFIER[`/`ODD_OR_EVEN]
@@ -160,7 +160,7 @@ Output events are:
160160
* `maybe-send`: a message the implementation may send, at any point from now on (until the next `disconnect`)
161161
* `must-not-send`: a message the implementation must not send, at any point from now on (until the next `disconnect`). This implies waiting at the end of the test (for a gossip flush!) to make sure it doesn't send it.
162162
* `expect-tx`: a transaction the implementation is expected to broadcast. The transactions here assume deterministic signatures.
163-
* `expect-error`: the implementation is expected to detect an error. This is generally a `expect-send` of `type=error` but it's legal for it to simply close the connection. If there's no `expect-error` event, the implementation is expected *not* to have an error.
163+
* `expect-error`: the implementation is expected to detect an error. This is generally an `expect-send` of `type=error` but it's legal for it to simply close the connection. If there's no `expect-error` event, the implementation is expected *not* to have an error.
164164

165165

166166
## Test Node Setup
@@ -199,6 +199,6 @@ The coinbase pays 50 BTC to the following key/address:
199199
WIF: cMahea7zqjxrtgAbB7LSGbcQUr1uX1ojuat9jZodMN87JcbXMTcA
200200
P2WPKH: bcrt1qw508d6qejxtdg4y5r3zarvary0c5xw7kygt080
201201

202-
A further 100 blocks are generated to allow the 50BTC output to be
202+
A further 100 blocks are generated to allow the 50 BTC output to be
203203
spent, so block height is 101. The file `setup.incl` contains more
204204
helpers for standard setups.

0 commit comments

Comments
 (0)