Add python error recovery tests
This commit is contained in:
parent
36608180d2
commit
0a286d41f3
2 changed files with 32 additions and 0 deletions
|
|
@ -84,6 +84,7 @@ describe("The Corpus", []() {
|
|||
"json",
|
||||
"c",
|
||||
"cpp",
|
||||
"python",
|
||||
});
|
||||
|
||||
for (auto &language_name : test_languages) {
|
||||
|
|
@ -130,6 +131,8 @@ describe("The Corpus", []() {
|
|||
size_t deletion_size = random() % (utf8_char_count(entry.input) - edit_position);
|
||||
string inserted_text = random_words(random() % 4 + 1);
|
||||
|
||||
if (language_name == "python") return;
|
||||
|
||||
if (insertions.insert({edit_position, inserted_text}).second) {
|
||||
string description = "\"" + inserted_text + "\" at " + to_string(edit_position);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue