Skip to content

Commit 391fc8c

Browse files
committed
Update unit tests to expect ruby grammar change
1 parent d6a3e4c commit 391fc8c

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

cli/src/tests/tags_test.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const RUBY_TAG_QUERY: &'static str = r#"
7070
(method
7171
name: (_) @name) @definition.method
7272
73-
(method_call
73+
(call
7474
method: (identifier) @name) @reference.call
7575
7676
(setter (identifier) @ignore)
@@ -317,19 +317,17 @@ fn test_tags_with_parse_error() {
317317
assert!(failed, "syntax error should have been detected");
318318

319319
assert_eq!(
320-
newtags.iter()
320+
newtags
321+
.iter()
321322
.map(|t| (
322323
substr(source, &t.name_range),
323324
tags_config.syntax_type_name(t.syntax_type_id)
324325
))
325326
.collect::<Vec<_>>(),
326-
&[
327-
("Fine", "class"),
328-
]
327+
&[("Fine", "class"),]
329328
);
330329
}
331330

332-
333331
#[test]
334332
fn test_tags_via_c_api() {
335333
allocations::record(|| {

test/fixtures/error_corpus/ruby_errors.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ c
1010
---
1111

1212
(program
13-
(method_call
13+
(call
1414
method: (identifier)
1515
(ERROR (heredoc_beginning))
1616
arguments: (argument_list

0 commit comments

Comments
 (0)