json: nit fixes
This commit is contained in:
parent
6165c55d3a
commit
bed826fa56
6 changed files with 8 additions and 8 deletions
|
@ -461,7 +461,7 @@ class SchemaConverter:
|
|||
rule += ' )'
|
||||
rule += ' )?'
|
||||
|
||||
rule += ' "}" space '
|
||||
rule += ' "}" space'
|
||||
|
||||
return rule
|
||||
|
||||
|
|
|
@ -445,7 +445,7 @@ private:
|
|||
rule += " )?";
|
||||
}
|
||||
|
||||
rule += " \"}\" space ";
|
||||
rule += " \"}\" space";
|
||||
|
||||
return rule;
|
||||
}
|
||||
|
|
|
@ -489,7 +489,7 @@ export class SchemaConverter {
|
|||
rule += ' )?';
|
||||
}
|
||||
|
||||
rule += ' "}" space ';
|
||||
rule += ' "}" space';
|
||||
|
||||
return rule;
|
||||
}
|
||||
|
|
|
@ -57,14 +57,14 @@ struct TestCase {
|
|||
static void run_py(const TestCase& tc) {
|
||||
cerr << "# Running Python " << tc.name.c_str() << endl;
|
||||
tc.prepare();
|
||||
std::system(("python ./examples/json-schema-to-grammar.py " + INPUT_NAME + " > " + OUT_NAME).c_str());
|
||||
assert(std::system(("python ./examples/json-schema-to-grammar.py " + INPUT_NAME + " > " + OUT_NAME).c_str()) == 0);
|
||||
tc.read_and_verify("Python");
|
||||
}
|
||||
|
||||
static void run_mjs(const TestCase& tc) {
|
||||
cerr << "# Running MJS " << tc.name.c_str() << endl;
|
||||
tc.prepare();
|
||||
std::system(("node ./tests/run-json-schema-to-grammar.mjs " + INPUT_NAME + " > " + OUT_NAME).c_str());
|
||||
assert(std::system(("node ./tests/run-json-schema-to-grammar.mjs " + INPUT_NAME + " > " + OUT_NAME).c_str()) == 0);
|
||||
tc.read_and_verify("JavaScript");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue