Skip to content

Instantly share code, notes, and snippets.

💭
Dormant, awaiting Spring.

PhilipDaniels

Block or report user

Report or block PhilipDaniels

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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);
}
}
You can’t perform that action at this time.