/
githubmirror
/
icu
Обзор
Документация
Войти
/
githubmirror
/
icu
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
icu4c/source/test/testdata/message2/syntax-errors-diagnostics-multiline.json
50 строк
2 KB
Mihai Nita
ICU-23475 Move MessageFormat2 C++ test files
28 июл 2026, 00:14
28 июл 2026, 00:14
a9fdce6
Код
Авторство
О чём код?
{ "scenario": "Syntax errors with character and line offsets", "description": "Syntax errors; for ICU4C, the character and line offsets in the parse error are checked", "defaultTestProperties": { "locale": "en-US", "expErrors": [ { "type": "syntax-error" } ] }, "tests": [ { "src": "{{hello wo\nrld", "char": 3, "line": 1, "comment": "Check that the missing closing '}' is reported on the correct line" }, { "src": "{{hello wo\nr\nl\ndddd", "char": 4, "line": 3, "comment": "Check that the missing closing '}' is reported on the correct line" }, { "src": "{{hello wo\nr\nl\n", "char": 0, "line": 3, "comment": "Offset for end-of-input should be 0 here because the line begins after the '\n', but there is no character after the '\n'" }, { "src": "hello {|wo\nrld", "char": 3, "line": 1, "comment": "Quoted literals may include newlines; check that the missing closing '|' is reported on the correct line" }, { "src": "hello {|wo\nr\nl\ndddd", "char": 4, "line": 3, "comment": "Quoted literals may include newlines; check that the missing closing '|' is reported on the correct line" }, { "src": "hello {|wo\nr\nl\n", "char": 0, "line": 3, "comment": "Offset for end-of-input should be 0 here because the line begins after the '\n', but there is no character after the '\n'" } ] }