| 16 | using json = nlohmann::ordered_json; |
| 17 | |
| 18 | static llama_grammar * build_grammar(const std::string & grammar_str) { |
| 19 | return llama_grammar_init_impl(nullptr, grammar_str.c_str(), "root", false, nullptr, 0, nullptr, 0); |
| 20 | } |
| 21 | |
| 22 | static bool test_build_grammar_fails(const std::string & grammar_str) { |
| 23 | fprintf(stderr, "⚫ Testing failure for grammar: %s\n", grammar_str.c_str()); |
no test coverage detected