Files
icu4c/testdata/message2/runtime-errors.json
Christoph M. Becker b5cdbf1d61 Vanilla icu4c 76.1
2024-10-31 22:27:43 +01:00

28 lines
1.0 KiB
JSON

{
"scenario": "Runtime errors",
"description": "Tests for bad-selector and bad-operand errors",
"defaultTestProperties": {
"locale": "en-US"
},
"tests": [
{
"src": ".match {|horse| :date}\n 1 {{The value is one.}}\n * {{Formatter used as selector.}}",
"exp": "Formatter used as selector.",
"expErrors": [{"type": "bad-selector"}],
"ignoreJava": "ICU4J doesn't signal runtime errors?"
},
{
"src": ".match {|horse| :number}\n 1 {{The value is one.}}\n * {{horse is not a number.}}",
"exp": "horse is not a number.",
"expErrors": [{"type": "bad-selector"}],
"ignoreJava": "ICU4J doesn't signal runtime errors?"
},
{
"src": ".local $sel = {|horse| :number}\n .match {$sel}\n 1 {{The value is one.}}\n * {{horse is not a number.}}",
"exp": "horse is not a number.",
"expErrors": [{"type": "bad-selector"}],
"ignoreJava": "ICU4J doesn't signal runtime errors?"
}
]
}