This commit is contained in:
nora 2024-03-16 13:55:22 +01:00
parent a7cd3d46f9
commit 135c9bbbb1
4 changed files with 112 additions and 66 deletions

View file

@ -1,5 +1,3 @@
use crate::parse::Tier;
#[test]
fn no_frontmatter() {
let name = "archlinux-unknown-linux-gnu.md"; // arch linux is an arch, right?
@ -38,7 +36,6 @@ fn parse_correctly() {
let name = "cat-unknown-linux-gnu.md";
let content = r#"
---
tier: "1" # first-class cats
maintainers: ["who maintains the cat?"]
---
## Requirements
@ -59,7 +56,6 @@ But it should be possible.
assert_eq!(info.maintainers, vec!["who maintains the cat?"]);
assert_eq!(info.pattern, name);
assert_eq!(info.tier, Some(Tier::One));
assert_eq!(
info.sections,
vec![