Update unit tests to expect ruby grammar change
This commit is contained in:
parent
d6a3e4c98c
commit
391fc8c340
2 changed files with 5 additions and 7 deletions
|
|
@ -70,7 +70,7 @@ const RUBY_TAG_QUERY: &'static str = r#"
|
|||
(method
|
||||
name: (_) @name) @definition.method
|
||||
|
||||
(method_call
|
||||
(call
|
||||
method: (identifier) @name) @reference.call
|
||||
|
||||
(setter (identifier) @ignore)
|
||||
|
|
@ -317,19 +317,17 @@ fn test_tags_with_parse_error() {
|
|||
assert!(failed, "syntax error should have been detected");
|
||||
|
||||
assert_eq!(
|
||||
newtags.iter()
|
||||
newtags
|
||||
.iter()
|
||||
.map(|t| (
|
||||
substr(source, &t.name_range),
|
||||
tags_config.syntax_type_name(t.syntax_type_id)
|
||||
))
|
||||
.collect::<Vec<_>>(),
|
||||
&[
|
||||
("Fine", "class"),
|
||||
]
|
||||
&[("Fine", "class"),]
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
#[test]
|
||||
fn test_tags_via_c_api() {
|
||||
allocations::record(|| {
|
||||
|
|
|
|||
2
test/fixtures/error_corpus/ruby_errors.txt
vendored
2
test/fixtures/error_corpus/ruby_errors.txt
vendored
|
|
@ -10,7 +10,7 @@ c
|
|||
---
|
||||
|
||||
(program
|
||||
(method_call
|
||||
(call
|
||||
method: (identifier)
|
||||
(ERROR (heredoc_beginning))
|
||||
arguments: (argument_list
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue