Checklists in the body, colour from tags, and commit-derived CalVer #4
@@ -520,7 +520,10 @@ mod tests {
|
|||||||
#[test]
|
#[test]
|
||||||
fn tag_spans_agree_with_extract_tags_about_what_a_tag_is() {
|
fn tag_spans_agree_with_extract_tags_about_what_a_tag_is() {
|
||||||
let body = "#1 nope a#b no but #Yes ##no";
|
let body = "#1 nope a#b no but #Yes ##no";
|
||||||
let names: Vec<String> = extract_tag_spans(body).into_iter().map(|t| t.name).collect();
|
let names: Vec<String> = extract_tag_spans(body)
|
||||||
|
.into_iter()
|
||||||
|
.map(|t| t.name)
|
||||||
|
.collect();
|
||||||
assert_eq!(names, extract_tags(body));
|
assert_eq!(names, extract_tags(body));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user