Skip to main content

page_verdict

Function page_verdict 

Source
pub fn page_verdict(source: &str) -> Result<usize, String>
Expand description

The verdict on a web page’s own ## Test blocks — shared by the web exercise grader and the test harness, so what the reader is told is what the suite checked. Ok carries how many tests passed; a page with no test, or with any failing one, is an Err naming what went wrong.

Host-only because the test runner it reads (logicaffeine_compile::testrun) is: the runner seals each test’s world with the in-memory filesystem, which logicaffeine_system builds for native targets only.