mirror of
https://github.com/php-win-ext/icu4c.git
synced 2026-04-27 19:23:28 +02:00
44 lines
1.2 KiB
JSON
44 lines
1.2 KiB
JSON
{
|
|
"scenario": "Duplicate declaration errors",
|
|
"description": "Tests that should trigger a duplicate declaration error",
|
|
"defaultTestProperties": {
|
|
"locale": "en-US",
|
|
"expErrors": [
|
|
{
|
|
"type": "duplicate-declaration"
|
|
}
|
|
]
|
|
},
|
|
"tests": [
|
|
{
|
|
"src": ".local $foo = {$foo} .local $foo = {42} {{bar {$foo}}}",
|
|
"params": [{ "name": "foo", "value": "foo" }],
|
|
"exp": "bar 42"
|
|
},
|
|
{
|
|
"src": ".local $foo = {42} .local $foo = {42} {{bar {$foo}}}",
|
|
"params": [{ "name": "foo", "value": "foo" }],
|
|
"exp": "bar 42"
|
|
},
|
|
{
|
|
"src": ".local $foo = {:unknown} .local $foo = {42} {{bar {$foo}}}",
|
|
"params": [{ "name": "foo", "value": "foo" }],
|
|
"exp": "bar 42"
|
|
},
|
|
{
|
|
"src": ".local $x = {42} .local $y = {$x} .local $x = {13} {{{$x} {$y}}}",
|
|
"exp": "13 42"
|
|
},
|
|
{
|
|
"src": ".local $foo = {$foo} {{bar {$foo}}}",
|
|
"params": [{ "name": "foo", "value": "foo" }],
|
|
"exp": "bar foo"
|
|
},
|
|
{
|
|
"src": ".local $foo = {$bar} .local $bar = {$baz} {{bar {$foo}}}",
|
|
"params": [{ "name": "baz", "value": "foo" }],
|
|
"exp": "bar {$bar}"
|
|
}
|
|
]
|
|
}
|