blob: 994523ac1abce2ccaaf51e7efb91d0bc39f7f852 [file] [log] [blame]
use super::*;
#[test]
fn test_find_attr_val() {
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);
}