@@ -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 `
4243is dependent on locale-specific data and may vary between implementations,
4344the following functions are defined for ** test use only** :
4445
45- ### ` test:func `
46+ ### ` : test:function `
4647
4748This function is valid both as a selector and as a formatter.
4849The only option it recognizes is ` fd ` ,
4950all other option values passed to it are ignored.
5051
51- When resolving a ` test:func ` expression,
52+ When resolving a ` : test:function ` expression,
5253its _ Input_ and _ FD_ values are determined as follows:
5354
54551 . 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 .
56571 . 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,
7778the behaviour of calling it as the ` rv ` value of MatchSelectorKeys(` rv ` , ` keys ` )
7879(see [ Resolve Preferences] ( /spec/formatting.md#resolve-preferences ) for more information)
7980depends 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
8990and that variable is used as an option value,
9091its 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
9495is formatted as a concatenation of the following parts:
9596
96971 . 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,
104105each of the above parts will be emitted separately
105106rather 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 ` ,
112113except 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,
115116a "not-formattable" error is emitted and the placeholder is formatted with
116117a 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 ` ,
121122except 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,
124125the steps under 2.iii. of [ Resolve Selectors] ( /spec/formatting.md#resolve-selectors ) are followed.
0 commit comments