Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Gradually warming up.

PhilipDaniels

💭
Gradually warming up.
View GitHub Profile
@PhilipDaniels
PhilipDaniels / testing.rs
Created Aug 7, 2018
How to use the #[test] attribute in Rust
View testing.rs
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
assert_eq!(2 + 2, 4);
}
}