mediawiki-extensions-Math/tests/phpunit/InputCheck/data/syntaxE.json
Moritz Schubotz (physikerwelt) 7780424504 Extend mathoids Checker functionality
* Keep status code and response in memory
* Allow external cache preloading.
  This will be required for the one-stop mathoid batch rendering
* Duplicate functionality from the restBASE interface
** Error rendering
** Validity checks
** getter for validated tex

Depends-On: Ic779e671ada0d0306e0935e578b47c431abd520e
Change-Id: I066975b9ba03f5861f6c92687cba4743044ea82a
2021-02-09 23:36:03 +01:00

374 lines
6.3 KiB
JSON

{
"status": 400,
"type": "bad_request",
"title": "Bad Request",
"detail": {
"error": {
"message": "Expected \"-\", \"[\", \"\\\\\", \"\\\\begin\", \"\\\\begin{\", \"]\", \"^\", \"_\", \"{\", [ \\t\\n\\r], [%$], [().], [,:;?!'], [/|], [0-9], [><~], [\\-+*=], or [a-zA-Z] but end of input found.",
"expected": [
{
"type": "class",
"parts": [
" ",
"\t",
"\n",
"\r"
],
"inverted": false,
"ignoreCase": false
},
{
"type": "literal",
"text": "_",
"ignoreCase": false
},
{
"type": "literal",
"text": "^",
"ignoreCase": false
},
{
"type": "class",
"parts": [
[
"a",
"z"
],
[
"A",
"Z"
]
],
"inverted": false,
"ignoreCase": false
},
{
"type": "class",
"parts": [
[
"0",
"9"
]
],
"inverted": false,
"ignoreCase": false
},
{
"type": "class",
"parts": [
",",
":",
";",
"?",
"!",
"'"
],
"inverted": false,
"ignoreCase": false
},
{
"type": "literal",
"text": "-",
"ignoreCase": false
},
{
"type": "class",
"parts": [
"-",
"+",
"*",
"="
],
"inverted": false,
"ignoreCase": false
},
{
"type": "literal",
"text": "\\",
"ignoreCase": false
},
{
"type": "literal",
"text": "\\",
"ignoreCase": false
},
{
"type": "class",
"parts": [
">",
"<",
"~"
],
"inverted": false,
"ignoreCase": false
},
{
"type": "class",
"parts": [
"%",
"$"
],
"inverted": false,
"ignoreCase": false
},
{
"type": "class",
"parts": [
"(",
")",
"."
],
"inverted": false,
"ignoreCase": false
},
{
"type": "class",
"parts": [
"/",
"|"
],
"inverted": false,
"ignoreCase": false
},
{
"type": "literal",
"text": "[",
"ignoreCase": false
},
{
"type": "literal",
"text": "\\",
"ignoreCase": false
},
{
"type": "literal",
"text": "{",
"ignoreCase": false
},
{
"type": "literal",
"text": "\\begin",
"ignoreCase": false
},
{
"type": "literal",
"text": "\\begin{",
"ignoreCase": false
},
{
"type": "literal",
"text": "]",
"ignoreCase": false
}
],
"found": null,
"location": {
"start": {
"offset": 8,
"line": 1,
"column": 9
},
"end": {
"offset": 8,
"line": 1,
"column": 9
}
},
"name": "SyntaxError"
},
"success": false,
"warnings": [],
"status": "S",
"details": "SyntaxError: Expected \"-\", \"[\", \"\\\\\", \"\\\\begin\", \"\\\\begin{\", \"]\", \"^\", \"_\", \"{\", [ \\t\\n\\r], [%$], [().], [,:;?!'], [/|], [0-9], [><~], [\\-+*=], or [a-zA-Z] but end of input found.",
"offset": 8,
"line": 1,
"column": 9
},
"method": "POST",
"uri": "/texvcinfo",
"success": false,
"log": {
"error": {
"message": "Expected \"-\", \"[\", \"\\\\\", \"\\\\begin\", \"\\\\begin{\", \"]\", \"^\", \"_\", \"{\", [ \\t\\n\\r], [%$], [().], [,:;?!'], [/|], [0-9], [><~], [\\-+*=], or [a-zA-Z] but end of input found.",
"expected": [
{
"type": "class",
"parts": [
" ",
"\t",
"\n",
"\r"
],
"inverted": false,
"ignoreCase": false
},
{
"type": "literal",
"text": "_",
"ignoreCase": false
},
{
"type": "literal",
"text": "^",
"ignoreCase": false
},
{
"type": "class",
"parts": [
[
"a",
"z"
],
[
"A",
"Z"
]
],
"inverted": false,
"ignoreCase": false
},
{
"type": "class",
"parts": [
[
"0",
"9"
]
],
"inverted": false,
"ignoreCase": false
},
{
"type": "class",
"parts": [
",",
":",
";",
"?",
"!",
"'"
],
"inverted": false,
"ignoreCase": false
},
{
"type": "literal",
"text": "-",
"ignoreCase": false
},
{
"type": "class",
"parts": [
"-",
"+",
"*",
"="
],
"inverted": false,
"ignoreCase": false
},
{
"type": "literal",
"text": "\\",
"ignoreCase": false
},
{
"type": "literal",
"text": "\\",
"ignoreCase": false
},
{
"type": "class",
"parts": [
">",
"<",
"~"
],
"inverted": false,
"ignoreCase": false
},
{
"type": "class",
"parts": [
"%",
"$"
],
"inverted": false,
"ignoreCase": false
},
{
"type": "class",
"parts": [
"(",
")",
"."
],
"inverted": false,
"ignoreCase": false
},
{
"type": "class",
"parts": [
"/",
"|"
],
"inverted": false,
"ignoreCase": false
},
{
"type": "literal",
"text": "[",
"ignoreCase": false
},
{
"type": "literal",
"text": "\\",
"ignoreCase": false
},
{
"type": "literal",
"text": "{",
"ignoreCase": false
},
{
"type": "literal",
"text": "\\begin",
"ignoreCase": false
},
{
"type": "literal",
"text": "\\begin{",
"ignoreCase": false
},
{
"type": "literal",
"text": "]",
"ignoreCase": false
}
],
"found": null,
"location": {
"start": {
"offset": 8,
"line": 1,
"column": 9
},
"end": {
"offset": 8,
"line": 1,
"column": 9
}
},
"name": "SyntaxError"
},
"success": false,
"warnings": [],
"status": "S",
"details": "SyntaxError: Expected \"-\", \"[\", \"\\\\\", \"\\\\begin\", \"\\\\begin{\", \"]\", \"^\", \"_\", \"{\", [ \\t\\n\\r], [%$], [().], [,:;?!'], [/|], [0-9], [><~], [\\-+*=], or [a-zA-Z] but end of input found.",
"offset": 8,
"line": 1,
"column": 9
},
"error": "SyntaxError: Expected \"-\", \"[\", \"\\\\\", \"\\\\begin\", \"\\\\begin{\", \"]\", \"^\", \"_\", \"{\", [ \\t\\n\\r], [%$], [().], [,:;?!'], [/|], [0-9], [><~], [\\-+*=], or [a-zA-Z] but end of input found."
}