C 6da2946aaf Write the documentation in Simplified Technical English há 3 horas atrás
..
concurrency.rs 6da2946aaf Write the documentation in Simplified Technical English há 2 horas atrás
inflight.rs 6da2946aaf Write the documentation in Simplified Technical English há 2 horas atrás
integration.rs 6da2946aaf Write the documentation in Simplified Technical English há 2 horas atrás
projection.rs 6da2946aaf Write the documentation in Simplified Technical English há 2 horas atrás
readme.rs 70b9992a2d Make kuatia the only crate an application depends on há 3 dias atrás
workflow.rs 6da2946aaf Write the documentation in Simplified Technical English há 2 horas atrás

readme.rs

//! 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"
);
}