#[test]
fn the_readme_hello_is_the_example_file() {
let readme = include_str!("../README.md").replace("\r\n", "\n");
let after = readme
.split_once("## Hello\n")
.expect("the README has a Hello section")
.1;
let block = after
.split_once("```text\n")
.expect("the Hello section has its rust block")
.1
.split_once("```")
.expect("the block ends")
.0;
let example = include_str!("../examples/hello.rs").replace("\r\n", "\n");
let shown = example.split_once('\n').unwrap().1;
assert_eq!(block, shown);
assert!(
block.lines().count() <= 10,
"{} lines",
block.lines().count()
);
assert_ne!(block, shown.replace("hello", "goodbye"));
}