Respect -D flag in fuzzing examples
This commit is contained in:
parent
87098760de
commit
3c737d8295
1 changed files with 4 additions and 1 deletions
|
|
@ -30,7 +30,10 @@ describe("examples found via fuzzing", [&]() {
|
|||
|
||||
it(("parses example number " + to_string(i)).c_str(), [&]() {
|
||||
TSDocument *document = ts_document_new();
|
||||
// ts_document_print_debugging_graphs(document, true);
|
||||
|
||||
if (getenv("TREE_SITTER_ENABLE_DEBUG_GRAPHS")) {
|
||||
ts_document_print_debugging_graphs(document, true);
|
||||
}
|
||||
|
||||
const string &language_name = examples[i].first;
|
||||
ts_document_set_language(document, load_real_language(language_name));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue