Skip to content

PdfCraft: An open-source PDF reader and editor written by scratch in pure Rust

M0: validate the committed parity manifest in xtask tests (#1214)

srt8hellcat2-uib939becb0681
diff --git a/xtask/src/parity.rs b/xtask/src/parity.rs
index 0e906d285..546677610 100644
--- a/xtask/src/parity.rs
+++ b/xtask/src/parity.rs
@@ -251,6 +251,13 @@ mod tests {
}
}
+ #[test]
+ fn committed_manifest_is_well_formed() {
+ let path = root().join("parity/acrobat-features.toml");
+ let text = std::fs::read_to_string(&path).expect("read the committed parity manifest");
+ let _: File = toml::from_str(&text).expect("the committed parity manifest must be valid TOML");
+ }
+
#[test]
fn registry_ids_are_extracted_from_source() {
let src =