tree-sitter/spec/helpers
Max Brunsfeld 896254eea5 Fix error in changed ranges calculation
There was an error in the way that we calculate the reference
scope sequences that are used as the basis for assertions about
changed ranges in randomized tests. The error caused some
characters' scopes to not be checked. This corrects the reference
implementation and fixes a previously uncaught bug in the
implementation of `tree_path_get_changed_ranges`.

Previously, when iterating over the old and new trees, we would
only perform comparisons of visible nodes. This resulted in a failure
to do any comparison for portions of the text in which there were
trailing invisible child nodes (e.g. trailing `_line_break` nodes
inside `statement` nodes in the JavaScript grammar).

Now, we additionally perform comparisons at invisible leaf nodes,
based on their lowest visible ancestor.
2017-01-27 23:47:34 -08:00
..
dedent.h Start work on unit test that edits python code 2016-12-20 13:10:18 -08:00
encoding_helpers.cc Unify test targets, use externally defined languages as fixtures 2016-01-15 11:19:24 -08:00
encoding_helpers.h Unify test targets, use externally defined languages as fixtures 2016-01-15 11:19:24 -08:00
equals_pointer.h Unify test targets, use externally defined languages as fixtures 2016-01-15 11:19:24 -08:00
load_language.cc Compile external scanners w/ debug symbols in test suite 2016-12-26 11:08:35 -08:00
load_language.h Start work on external tokens 2016-12-02 16:24:19 -08:00
point_helpers.cc Fix error in changed ranges calculation 2017-01-27 23:47:34 -08:00
point_helpers.h Remove the TS prefix from some internal type/function names 2016-11-09 20:59:05 -08:00
random_helpers.cc Move random string helpers into a separate file 2016-07-17 06:22:05 -07:00
random_helpers.h Move random string helpers into a separate file 2016-07-17 06:22:05 -07:00
read_test_entries.cc Don't use boost regex lib on travis 2016-11-18 14:46:53 -08:00
read_test_entries.h Unify test targets, use externally defined languages as fixtures 2016-01-15 11:19:24 -08:00
record_alloc.cc Remove logic for recovering from OOM 2016-11-04 09:18:38 -07:00
record_alloc.h Handle allocation failures when instantiating documents 2016-01-18 11:32:10 -08:00
rule_helpers.cc Start work on external tokens 2016-12-02 16:24:19 -08:00
rule_helpers.h Represent rule metadata as a struct, not a map 2016-11-19 13:59:34 -08:00
scope_sequence.cc Fix error in changed ranges calculation 2017-01-27 23:47:34 -08:00
scope_sequence.h Start work on randomized changed-region testing 2016-09-09 09:20:04 -07:00
spy_input.cc Represent byte, char and tree counts as 32 bit numbers 2016-11-14 12:19:13 -08:00
spy_input.h Represent byte, char and tree counts as 32 bit numbers 2016-11-14 12:19:13 -08:00
spy_logger.cc Rename ts_document_set_debugger -> ts_document_set_logger 2016-09-06 17:40:26 -07:00
spy_logger.h Rename ts_document_set_debugger -> ts_document_set_logger 2016-09-06 17:40:26 -07:00
stderr_logger.cc Rename ts_document_set_debugger -> ts_document_set_logger 2016-09-06 17:40:26 -07:00
stderr_logger.h Rename ts_document_set_debugger -> ts_document_set_logger 2016-09-06 17:40:26 -07:00
stream_methods.cc Refactor logic for handling shared internal/external tokens 2016-12-21 10:49:55 -08:00
stream_methods.h Refactor logic for handling shared internal/external tokens 2016-12-21 10:49:55 -08:00
tree_helpers.cc Remove the TS prefix from some internal type/function names 2016-11-09 20:59:05 -08:00
tree_helpers.h Remove the TS prefix from some internal type/function names 2016-11-09 20:59:05 -08:00