mediawiki-extensions-Discus.../tests/cases/timestamp-regex.json
Ed Sanders c5d1029b25 Move /cases and /data up to /tests
Theses are no longer QUnit specific.

Change-Id: I5f3cca1ff686922e0cdaaedb80858f37df04799a
2020-05-18 21:47:17 +01:00

38 lines
1.9 KiB
JSON

[
{
"format": "H:i, j F Y",
"expected": "(\\d{2}):(\\d{2}), (\\d{1,2}) (January|February|March|April|May|June|July|August|September|October|November|December) (\\d{4})[\\u200E\\u200F]? [\\u200E\\u200F]?\\((UTC)\\)",
"message": "(en) Boring"
},
{
"format": "H:i، j xg Y",
"expected": "(\\d{2}):(\\d{2})، (\\d{1,2}) (January|February|March|April|May|June|July|August|September|October|November|December) (\\d{4})[\\u200E\\u200F]? [\\u200E\\u200F]?\\((UTC)\\)",
"message": "(ar) 'xg' specifier"
},
{
"format": "H:i, j F xkY",
"expected": "(\\d{2}):(\\d{2}), (\\d{1,2}) (January|February|March|April|May|June|July|August|September|October|November|December) (\\d{4})[\\u200E\\u200F]? [\\u200E\\u200F]?\\((UTC)\\)",
"message": "(th) 'xkY' specifier"
},
{
"format": "H\"h\"i\"min\" \"de\" j \"de\" F \"de\" Y",
"expected": "(\\d{2})h(\\d{2})min de (\\d{1,2}) de (January|February|March|April|May|June|July|August|September|October|November|December) de (\\d{4})[\\u200E\\u200F]? [\\u200E\\u200F]?\\((UTC)\\)",
"message": "(pt) Escaped text (quotes)"
},
{
"format": "H\\hi\\m\\i\\n \\d\\e j \\d\\e F \\d\\e Y",
"expected": "(\\d{2})h(\\d{2})min de (\\d{1,2}) de (January|February|March|April|May|June|July|August|September|October|November|December) de (\\d{4})[\\u200E\\u200F]? [\\u200E\\u200F]?\\((UTC)\\)",
"message": "(pt) Escaped text (backslashes)"
},
{
"format": "j F Y à H:i",
"expected": "(\\d{1,2}) (January|February|March|April|May|June|July|August|September|October|November|December) (\\d{4}) à (\\d{2}):(\\d{2})[\\u200E\\u200F]? [\\u200E\\u200F]?\\((UTC)\\)",
"message": "(fr) Unescaped text (non-ASCII)"
},
{
"format": "Y年n月j日 (D) H:i",
"expected": "(\\d{4})年(\\d{1,2})月(\\d{1,2})日 \\((Sun|Mon|Tue|Wed|Thu|Fri|Sat)\\) (\\d{2}):(\\d{2})[\\u200E\\u200F]? [\\u200E\\u200F]?\\((UTC)\\)",
"message": "(ja) Unescaped regexp special characters"
}
]