#[test]
fn compatibility_doc_carries_the_generated_feature_table() {
let path = concat!(env!("CARGO_MANIFEST_DIR"), "/../../docs/development/stages/09-compatibility.md");
let doc = std::fs::read_to_string(path).expect("09-compatibility.md");
let start = doc.find("<!-- host-features:begin -->").expect("begin marker") + "<!-- host-features:begin -->".len();
let end = doc.find("<!-- host-features:end -->").expect("end marker");
assert_eq!(
doc[start..end].trim(),
node_app_manifest::render_host_feature_table().trim(),
"regenerate with: cargo run -q -p node-app-build --bin node-app -- contract features --markdown"
);
}