mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-04 13:05:31 +00:00
57 lines
2.9 KiB
JSON
57 lines
2.9 KiB
JSON
{
|
|
"scenario": "Valid tests",
|
|
"description": "Additional valid tests",
|
|
"defaultTestProperties": {
|
|
"locale": "en-US"
|
|
},
|
|
"tests": [
|
|
{ "src": "" },
|
|
{ "src": "Hello" },
|
|
{ "src": "Hello world!" },
|
|
{ "src": "Hello \t \n \r \\{ world!" },
|
|
{ "src": "Hello world {:datetime}" },
|
|
{ "src": "Hello world {foo}" },
|
|
{ "src": "Hello {0} world" },
|
|
{ "src": "Hello {123} world" },
|
|
{ "src": "Hello {-123} world" },
|
|
{ "src": "Hello {3.1416} world" },
|
|
{ "src": "Hello {-3.1416} world" },
|
|
{ "src": "Hello {123E+2} world" },
|
|
{ "src": "Hello {123E-2} world" },
|
|
{ "src": "Hello {123.456E+2} world" },
|
|
{ "src": "Hello {123.456E-2} world" },
|
|
{ "src": "Hello {-123.456E+2} world" },
|
|
{ "src": "Hello {-123.456E-2} world" },
|
|
{ "src": "Hello {-123E+2} world" },
|
|
{ "src": "Hello {-123E-2} world" },
|
|
{ "src": "Hello world {$exp}" },
|
|
{ "src": "Hello world {$exp :datetime}" },
|
|
{ "src": "Hello world {|2024-02-27| :datetime}" },
|
|
{ "src": "Hello world {$exp :datetime style=long} and more" },
|
|
{ "src": "Hello world {$exp :function number=1234} and more" },
|
|
{ "src": "Hello world {$exp :function unquoted=left } and more" },
|
|
{ "src": "Hello world {$exp :function quoted=|Something| } and more" },
|
|
{ "src": "Hello world {$exp :function quoted=|Something with spaces| } and more" },
|
|
{ "src": "Hello world {$exp :function quoted=|Something with \\| spaces and \\| escapes| } and more" },
|
|
{ "src": "Hello world {$exp :function number=1234 unquoted=left quoted=|Something|}" },
|
|
{ "src": "Hello world {$exp :function number=1234 unquoted=left quoted=|Something longer|}" },
|
|
{ "src": "Hello world {$exp :function number=1234 unquoted=left quoted=|Something \\| longer|}" },
|
|
{ "src": "Hello world {$exp}" },
|
|
{ "src": "Hello world {$exp @attr}" },
|
|
{ "src": "Hello world {$exp @valid @attr=a @attrb=123 @atrn=|foo bar|}" },
|
|
{ "src": "Hello world {$exp :date @valid @attr=aaaa @attrb=123 @atrn=|foo bar|}" },
|
|
{ "src": "Hello world {$exp :date year=numeric month=long day=numeric int=12 @valid @attr=a @attrb=123 @atrn=|foo bar|}" },
|
|
{ "src": "{{.starting with dot is OK here}}" },
|
|
{ "src": "{{Some string pattern \\}, with {$foo} and {$exp :date style=long}!}}" },
|
|
{ "src": ".input {$pi :number} {{}}" },
|
|
{ "src": ".input {$exp :date} {{}}" },
|
|
{ "src": ".local $foo = {$exp} {{}}" },
|
|
{ "src": ".local $foo = {$exp :date} {{}}" },
|
|
{ "src": ".local $foo = {$exp :date year=numeric month=long day=numeric} {{}}" },
|
|
{ "src": ".local $bar = {$foo :date month=medium} {{}}" },
|
|
{ "src": ".input {$a :date} .local $exp = {$a :date style=full} {{Your card expires on {$exp}!}}" },
|
|
{ "src": ".input {$a :date} .local $b = {$a :date year=numeric month=long day=numeric} .local $c = {$b :date month=medium} {{}}" },
|
|
{ "src": ".input {$x :number} {{_}}" },
|
|
{ "src": ".local $foo = {|1|} {{_}}" }
|
|
]
|
|
}
|