//! The README's quick example is the `quickstart` program's source, so a README
//! that drifts from the compiler fails here rather than in a reader's editor.
const README: &str = include_str!("../../../README.md");
const QUICKSTART: &str = include_str!("../examples/quickstart.rs");
#[test]
fn readme_quick_example_matches_the_compiled_example() {
let body: Vec<&str> = QUICKSTART
.lines()
.skip_while(|line| line.starts_with("//!") || line.is_empty())
.collect();
assert!(
README.contains(&body.join("\n")),
"README.md's quick example has drifted from crates/kuatia/examples/quickstart.rs; \
paste that file's code (without its //! header) into the fence"
);
}