diff --git a/test/schemas/v0/tests.schema.json b/test/schemas/v0/tests.schema.json index b6d5ac1cb..aa6884c13 100644 --- a/test/schemas/v0/tests.schema.json +++ b/test/schemas/v0/tests.schema.json @@ -175,8 +175,17 @@ "type": "string" }, "src": { - "description": "The MF2 syntax source.", - "type": "string" + "oneOf": [ + { + "description": "The source message in the MF2 format.", + "type": "string" + }, + { + "description": "An array of strings to be concatenated as the source message in the MF2 format.", + "type": "array", + "items": { "type": "string" } + } + ] }, "bidiIsolation": { "description": "The bidi isolation strategy.", diff --git a/test/tests/pattern-selection.json b/test/tests/pattern-selection.json index 29dc146c1..8a81a266b 100644 --- a/test/tests/pattern-selection.json +++ b/test/tests/pattern-selection.json @@ -58,7 +58,11 @@ "exp": "1.0" }, { - "src": ".input {$x :test:select decimalPlaces=9} .local $y = {$x :test:select decimalPlaces=1} .match $y 1.0 {{1.0}} 1 {{1}} * {{bad-option-value}}", + "src": [".input {$x :test:select decimalPlaces=9}", + ".local $y = {$x :test:select decimalPlaces=1}", + ".match $y\n", + "1.0 {{1.0}}\n", + "1 {{1}} * {{bad-option-value}}"], "params": [{ "name": "x", "value": 1 }], "exp": "bad-option-value", "expErrors": [ @@ -91,28 +95,64 @@ ] }, { - "src": ".local $x = {1 :test:select} .local $y = {1 :test:select} .match $x $y 1 1 {{1,1}} 1 * {{1,*}} * 1 {{*,1}} * * {{*,*}}", + "src": [".local $x = {1 :test:select}", + ".local $y = {1 :test:select}", + ".match $x $y\n", + "1 1 {{1,1}}", + "1 * {{1,*}}", + "* 1 {{*,1}}", + "* * {{*,*}}"], "exp": "1,1" }, { - "src": ".local $x = {1 :test:select} .local $y = {0 :test:select} .match $x $y 1 1 {{1,1}} 1 * {{1,*}} * 1 {{*,1}} * * {{*,*}}", + "src": [".local $x = {1 :test:select}", + ".local $y = {0 :test:select}", + ".match $x $y\n", + "1 1 {{1,1}}", + "1 * {{1,*}}", + "* 1 {{*,1}}", + "* * {{*,*}}"], "exp": "1,*" }, { - "src": ".local $x = {0 :test:select} .local $y = {1 :test:select} .match $x $y 1 1 {{1,1}} 1 * {{1,*}} * 1 {{*,1}} * * {{*,*}}", + "src": [".local $x = {0 :test:select}", + ".local $y = {1 :test:select}", + ".match $x $y\n", + "1 1 {{1,1}}", + "1 * {{1,*}}", + "* 1 {{*,1}}", + "* * {{*,*}}"], "exp": "*,1" }, { - "src": ".local $x = {0 :test:select} .local $y = {0 :test:select} .match $x $y 1 1 {{1,1}} 1 * {{1,*}} * 1 {{*,1}} * * {{*,*}}", + "src": [".local $x = {0 :test:select}", + ".local $y = {0 :test:select}", + ".match $x $y", + "1 1 {{1,1}}", + "1 * {{1,*}}", + "* 1 {{*,1}}", + "* * {{*,*}}"], "exp": "*,*" }, { - "src": ".local $x = {1 :test:select fails=select} .local $y = {1 :test:select} .match $x $y 1 1 {{1,1}} 1 * {{1,*}} * 1 {{*,1}} * * {{*,*}}", + "src": [".local $x = {1 :test:select fails=select}", + ".local $y = {1 :test:select}", + ".match $x $y\n", + "1 1 {{1,1}}", + "1 * {{1,*}}", + "* 1 {{*,1}}", + "* * {{*,*}}"], "exp": "*,1", "expErrors": [{ "type": "bad-selector" }] }, { - "src": ".local $x = {1 :test:select} .local $y = {1 :test:format} .match $x $y 1 1 {{1,1}} 1 * {{1,*}} * 1 {{*,1}} * * {{*,*}}", + "src": [".local $x = {1 :test:select}", + ".local $y = {1 :test:format}", + ".match $x $y\n", + "1 1 {{1,1}}", + "1 * {{1,*}}", + "* 1 {{*,1}}", + "* * {{*,*}}"], "exp": "1,*", "expErrors": [{ "type": "bad-selector" }] }