MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / verify_failure

Function verify_failure

smallthinker/tests/test-grammar-parser.cpp:135–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135static void verify_failure(const char * grammar_bytes) {
136 fprintf(stderr, "Testing expected failure:%s\n", grammar_bytes);
137 llama_grammar_parser result;
138 result.parse(grammar_bytes);
139 assert(result.rules.empty() && "should have failed");
140}
141
142int main()
143{

Callers 1

mainFunction · 0.85

Calls 3

fprintfFunction · 0.85
parseMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected