]> git.lizzy.rs Git - rust.git/blob - src/tools/tidy/src/features/tests.rs
Auto merge of #102700 - oli-obk:0xDEAD_TAIT, r=compiler-errors
[rust.git] / src / tools / tidy / src / features / tests.rs
1 use super::*;
2
3 #[test]
4 fn test_find_attr_val() {
5     let s = r#"#[unstable(feature = "tidy_test_never_used_anywhere_else", issue = "58402")]"#;
6     assert_eq!(find_attr_val(s, "feature"), Some("tidy_test_never_used_anywhere_else"));
7     assert_eq!(find_attr_val(s, "issue"), Some("58402"));
8     assert_eq!(find_attr_val(s, "since"), None);
9 }