Update unit tests to expect ruby grammar change

This commit is contained in:
Max Brunsfeld 2020-12-20 19:34:45 -08:00
parent d6a3e4c98c
commit 391fc8c340
2 changed files with 5 additions and 7 deletions

View file

@ -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(|| {

View file

@ -10,7 +10,7 @@ c
---
(program
(method_call
(call
method: (identifier)
(ERROR (heredoc_beginning))
arguments: (argument_list