Avoid feature name 'checked_duration_since' in a Tidy test

This commit is contained in:
Vitaly _Vi Shukela 2019-09-05 01:25:07 +03:00
parent 843fba3ed1
commit 5545582a6f
No known key found for this signature in database
GPG Key ID: C097221D6E03DF68

View File

@ -2,8 +2,8 @@ use super::*;
#[test]
fn test_find_attr_val() {
let s = r#"#[unstable(feature = "checked_duration_since", issue = "58402")]"#;
assert_eq!(find_attr_val(s, "feature"), Some("checked_duration_since"));
let s = r#"#[unstable(feature = "tidy_test_never_used_anywhere_else", issue = "58402")]"#;
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, "since"), None);
}