cldr
Version:
Library for extracting data from CLDR (the Unicode Common Locale Data Repository)
43 lines (42 loc) • 965 B
JSON
{
"$schema": "https://raw.githubusercontent.com/unicode-org/message-format-wg/main/test/schemas/v0/tests.schema.json",
"scenario": "Time function",
"description": "The built-in formatter for times.",
"defaultTestProperties": {
"bidiIsolation": "none",
"locale": "en-US",
"expErrors": false
},
"tests": [
{
"src": "{:time}",
"exp": "{:time}",
"expErrors": [
{
"type": "bad-operand"
}
]
},
{
"src": "{horse :time}",
"exp": "{|horse|}",
"expErrors": [
{
"type": "bad-operand"
}
]
},
{
"src": "{|2006-01-02T15:04:06| :time}"
},
{
"src": "{|2006-01-02T15:04:06| :time style=medium}"
},
{
"src": ".local $t = {|2006-01-02T15:04:06| :time style=medium} {{{$t}}}"
},
{
"src": ".local $t = {|2006-01-02T15:04:06| :datetime dateStyle=long timeStyle=long} {{{$t :time}}}"
}
]
}