Skip to content

Commit 1340f79

Browse files
committed
Apply suggestions from code review
1 parent bf0a30f commit 1340f79

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

test/README.md

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,24 @@ Some examples of test harnesses using these tests, from the source repository:
3838

3939
## Test Functions
4040

41-
As the behaviour of `:number`, `:datetime`, and other default message functions
41+
As the behaviour of some of the default registry functions
42+
such as `:number` and `:datetime`
4243
is dependent on locale-specific data and may vary between implementations,
4344
the following functions are defined for **test use only**:
4445

45-
### `test:func`
46+
### `:test:function`
4647

4748
This function is valid both as a selector and as a formatter.
4849
The only option it recognizes is `fd`,
4950
all other option values passed to it are ignored.
5051

51-
When resolving a `test:func` expression,
52+
When resolving a `:test:function` expression,
5253
its _Input_ and _FD_ values are determined as follows:
5354

5455
1. Let _FD_ be `0`.
55-
1. Let _arg_ be the resolved value of the expression argument.
56+
1. Let _arg_ be the resolved value of the expression operand.
5657
1. If _arg_ is the resolved value of an expression
57-
with a `test:func`, `test:select`, or `test:format` annotation
58+
with a `:test:function`, `:test:select`, or `:test:format` annotation
5859
for which resolution has succeeded, then
5960
1. Let _Input_ be the _Input_ value of _arg_.
6061
1. Set _FD_ to be _FD_ value of _arg_.
@@ -73,7 +74,7 @@ its _Input_ and _FD_ values are determined as follows:
7374
1. Emit "bad-option" Resolution Error.
7475
1. Use a fallback representation as the resolved value of the expression.
7576

76-
When `test:func` is used as a selector,
77+
When `:test:function` is used as a selector,
7778
the behaviour of calling it as the `rv` value of MatchSelectorKeys(`rv`, `keys`)
7879
(see [Resolve Preferences](/spec/formatting.md#resolve-preferences) for more information)
7980
depends on its _Input_ and _FD_ values.
@@ -85,12 +86,12 @@ depends on its _Input_ and _FD_ values.
8586
the method will return the list « `'1'` » if `keys` includes `'1'`, or an empty list otherwise.
8687
- If the _Input_ is any other value, the method will return an empty list.
8788

88-
When an expression with a `test:func` annotation is assigned to a variable by a declaration
89+
When an expression with a `:test:function` annotation is assigned to a variable by a declaration
8990
and that variable is used as an option value,
9091
its resolved value is the _Input_ value.
9192

92-
When `test:func` is used as a formatter,
93-
a placeholder resolving to a value with a `test:func` expression
93+
When `:test:function` is used as a formatter,
94+
a placeholder resolving to a value with a `:test:function` expression
9495
is formatted as a concatenation of the following parts:
9596

9697
1. If _Input_ is less than `0`, the character `-` U+002D Hyphen-Minus.
@@ -104,21 +105,21 @@ If the formatting target is a sequence of parts,
104105
each of the above parts will be emitted separately
105106
rather than being concatenated into a single string.
106107

107-
Note that for purposes of clarity, the formatting of `test:func` does not perform any rounding.
108+
Note that for purposes of clarity, the formatting of `:test:function` does not perform any rounding.
108109

109-
### `test:select`
110+
### `:test:select`
110111

111-
This function behaves exactly the same as `test:func`,
112+
This function behaves exactly the same as `:test:function`,
112113
except that it cannot be used for formatting.
113114

114-
When `test:select` is used as a formatter,
115+
When `:test:select` is used as a formatter,
115116
a "not-formattable" error is emitted and the placeholder is formatted with
116117
a fallback representation.
117118

118-
### `test:format`
119+
### `:test:format`
119120

120-
This function behaves exactly the same as `test:func`,
121+
This function behaves exactly the same as `:test:function`,
121122
except that it cannot be used for selection.
122123

123-
When `test:format` is used as a selector,
124+
When `:test:format` is used as a selector,
124125
the steps under 2.iii. of [Resolve Selectors](/spec/formatting.md#resolve-selectors) are followed.

0 commit comments

Comments
 (0)