const README: &str = include_str!("../README.md");
#[test]
fn the_readme_symlink_resolved_to_the_readme() {
assert!(
README.starts_with("# keelson\n"),
"crates/keelson/README.md did not resolve to the repository README — \
it begins {:?}. If this is a checkout without symlink support, enable \
it (`git config core.symlinks true` and re-checkout); the crate \
documentation and the README's doctest both come through that link.",
&README[..README.len().min(40)]
);
}
#[test]
fn the_worked_example_is_still_in_it() {
assert!(
README.contains("```rust\nuse keelson::exec::"),
"the README's worked example is no longer a compiled ```rust block; \
a README example that is not a doctest cannot be trusted to compile"
);
}