QualityTests, assert! & Documentation Comments
All courses

Test in main or with cargo test

assert!, assert_eq! panic on failure. In real crates, tests live in #[cfg(test)] mod tests { } and run via cargo test.

Best practice: Doc comments /// generate docs on cargo doc — write examples that compile.

Output
Press Run to execute your code.