use crate::models::{examples, splice, table};
use std::path::Path;
#[test]
fn readme_models_current() {
let root = Path::new(env!("CARGO_MANIFEST_DIR")).join("../..");
let got = std::fs::read_to_string(root.join("README.md")).unwrap();
let want = splice(&got, &table(&examples(&root).unwrap())).unwrap();
let fix = "run `cargo run -p tessera-cli -- models --readme README.md`";
assert!(got == want, "README.md is stale: {fix}");
}