Getting Started
Installation
Add this to your Cargo.toml
:
[dev-dependencies]
test-ur-code-xd = "0.1.0"
Usage
Then, add use test_ur_code_xd::*;
to your tests:
#[cfg(test)]
mod tests {
use test_ur_code_xd::*;
#[test]
fn example() {
// ...
assert_str_eq!(hello_world, "hello, world");
// ...
}
}
This will give you access to the assertions and to the test annotations.