Import error corpus entries from grammar repos

Now that error recovery requires no input for the grammar author, it shouldn't
be tested in the individual grammar repos.
This commit is contained in:
Max Brunsfeld 2016-05-28 20:12:02 -07:00
parent 1e353381ff
commit e1a3a1daeb
9 changed files with 300 additions and 16 deletions

View file

@ -102,8 +102,6 @@ describe("The Corpus", []() {
});
for (auto &language_name : test_languages) {
string language_dir = string("spec/fixtures/") + language_name;
describe(("the " + language_name + " language").c_str(), [&]() {
TSDocument *document;
@ -120,7 +118,7 @@ describe("The Corpus", []() {
AssertThat(record_alloc::outstanding_allocation_indices(), IsEmpty());
});
for (auto &entry : read_corpus_entries(language_dir + "/grammar_test")) {
for (auto &entry : read_corpus_entries(language_name)) {
SpyInput *input;
auto it_handles_edit_sequence = [&](string name, std::function<void()> edit_sequence){