Update ruby error recovery test to reflect grammar tweaks
This commit is contained in:
parent
281e75d74d
commit
4e86b76e8c
2 changed files with 9 additions and 1 deletions
8
test/fixtures/error_corpus/readme.md
vendored
Normal file
8
test/fixtures/error_corpus/readme.md
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
The Error Corpus
|
||||
================
|
||||
|
||||
This directory contains corpus tests that exercise error recovery in a variety of languages.
|
||||
|
||||
These corpus tests provide a simple way of asserting that error recoveries are "reasonable" in a variety of situations. But they are also somewhat *overspecified*. It isn't critical that error recovery behaves *exactly* as these tests specify, just that most of the syntax tree is preserved despite the error.
|
||||
|
||||
Sometimes these tests can start failing when changes are pushed to the parser repositories like `tree-sitter-ruby`, `tree-sitter-javascript`, etc. Usually, we just need to tweak the expected syntax tree.
|
||||
Loading…
Add table
Add a link
Reference in a new issue