json: nit fixes

This commit is contained in:
ochafik 2024-03-12 04:26:47 +00:00
parent 6165c55d3a
commit bed826fa56
6 changed files with 8 additions and 8 deletions

View file

@ -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");
}