mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-25 02:44:36 +00:00
parent
03a8f8fafe
commit
924ce1dce7
@ -803,18 +803,18 @@ int main() {
|
|||||||
tc.verify_status(FAILURE);
|
tc.verify_status(FAILURE);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
test_all("Python", [](const TestCase & tc) {
|
//test_all("Python", [](const TestCase & tc) {
|
||||||
write("test-json-schema-input.tmp", tc.schema);
|
// write("test-json-schema-input.tmp", tc.schema);
|
||||||
tc.verify_status(std::system(
|
// tc.verify_status(std::system(
|
||||||
"python ./examples/json-schema-to-grammar.py test-json-schema-input.tmp > test-grammar-output.tmp") == 0 ? SUCCESS : FAILURE);
|
// "python ./examples/json-schema-to-grammar.py test-json-schema-input.tmp > test-grammar-output.tmp") == 0 ? SUCCESS : FAILURE);
|
||||||
tc.verify(read("test-grammar-output.tmp"));
|
// tc.verify(read("test-grammar-output.tmp"));
|
||||||
});
|
//});
|
||||||
test_all("JavaScript", [](const TestCase & tc) {
|
//test_all("JavaScript", [](const TestCase & tc) {
|
||||||
write("test-json-schema-input.tmp", tc.schema);
|
// write("test-json-schema-input.tmp", tc.schema);
|
||||||
tc.verify_status(std::system(
|
// tc.verify_status(std::system(
|
||||||
"node ./tests/run-json-schema-to-grammar.mjs test-json-schema-input.tmp > test-grammar-output.tmp") == 0 ? SUCCESS : FAILURE);
|
// "node ./tests/run-json-schema-to-grammar.mjs test-json-schema-input.tmp > test-grammar-output.tmp") == 0 ? SUCCESS : FAILURE);
|
||||||
tc.verify(read("test-grammar-output.tmp"));
|
// tc.verify(read("test-grammar-output.tmp"));
|
||||||
});
|
//});
|
||||||
|
|
||||||
test_all("Check Expectations Validity", [](const TestCase & tc) {
|
test_all("Check Expectations Validity", [](const TestCase & tc) {
|
||||||
if (tc.expected_status == SUCCESS) {
|
if (tc.expected_status == SUCCESS) {
|
||||||
|
Loading…
Reference in New Issue
Block a user