Avoid feature name 'checked_duration_since' in a Tidy test
This commit is contained in:
parent
843fba3ed1
commit
5545582a6f
1 changed files with 2 additions and 2 deletions
|
@ -2,8 +2,8 @@ use super::*;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_find_attr_val() {
|
fn test_find_attr_val() {
|
||||||
let s = r#"#[unstable(feature = "checked_duration_since", issue = "58402")]"#;
|
let s = r#"#[unstable(feature = "tidy_test_never_used_anywhere_else", issue = "58402")]"#;
|
||||||
assert_eq!(find_attr_val(s, "feature"), Some("checked_duration_since"));
|
assert_eq!(find_attr_val(s, "feature"), Some("tidy_test_never_used_anywhere_else"));
|
||||||
assert_eq!(find_attr_val(s, "issue"), Some("58402"));
|
assert_eq!(find_attr_val(s, "issue"), Some("58402"));
|
||||||
assert_eq!(find_attr_val(s, "since"), None);
|
assert_eq!(find_attr_val(s, "since"), None);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue