mirror of
https://github.com/rust-lang/book.git
synced 2026-03-31 02:56:10 -04:00
525 B
525 B
% Testing
There is a new edition of the book and this is an old link.
Rust includes support for writing software tests within the language itself.
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
}
}
Here are the relevant sections in the new and old books: