1 unstable release
0.1.0 | Oct 7, 2022 |
---|
#29 in #usize
3KB
simple-test-framework
An example of a simple test framework in Rust
Usage
#![feature(custom_test_frameworks)]
#![test_runner(stf_runner::test_runner)]
use stf_macro::simple_test;
pub fn add(left: usize, right: usize) -> usize {
left + right
}
#[simple_test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}