35 lines
1.2 KiB
Rust
35 lines
1.2 KiB
Rust
#[test]
|
|
fn readme_script_section_matches_executable_script_cli() {
|
|
let readme = include_str!("../README.md");
|
|
|
|
assert!(
|
|
readme.contains("cargo run --bin openvistapro -- script run --input examples/demo.ovps"),
|
|
"README should show the executable script-run command used by examples/demo.ovps"
|
|
);
|
|
assert!(
|
|
readme.contains("execut") && readme.contains("writes each `render output`"),
|
|
"README should describe current script execution behavior, not parser-only behavior"
|
|
);
|
|
assert!(
|
|
!readme.contains("only parses scripts into an AST"),
|
|
"README must not retain the pre-execution script MVP wording"
|
|
);
|
|
}
|
|
|
|
#[test]
|
|
fn readme_lists_current_importer_surface() {
|
|
let readme = include_str!("../README.md");
|
|
|
|
for importer in ["`ovp-text`", "`hgt`", "`esri-ascii-grid`"] {
|
|
assert!(
|
|
readme.contains(importer),
|
|
"README should mention current importer {importer}"
|
|
);
|
|
}
|
|
assert!(
|
|
readme.contains("cargo test ascii_grid")
|
|
&& readme.contains("cargo test ascii_grid --features ascii-grid-import"),
|
|
"README should document the ASCII-grid validation commands"
|
|
);
|
|
}
|