Get generate_tags with the new iterator API

This commit is contained in:
Max Brunsfeld 2020-03-10 12:05:09 -07:00
parent 0eb162c685
commit 17cc38678c
2 changed files with 89 additions and 77 deletions

View file

@ -2,7 +2,7 @@ use super::helpers::fixtures::get_language;
use tree_sitter_tags::{TagKind, TagsConfiguration, TagsContext};
#[test]
fn test_tags_javascript() {
fn test_tags_python() {
let language = get_language("python");
let tags_config = TagsConfiguration::new(
language,
@ -40,7 +40,7 @@ fn test_tags_javascript() {
'''
Get the customer's age
'''
compute_age(self.id);
compute_age(self.id)
}
"#,
)