Yotsuba

An RSpec-style test framework for Rust.

Build Status Download Count Version

Getting started

Yotsuba is a collection of macros and matchers that allow for quicker testing and more readable tests.

```rust

[macro_use] extern crate yotsuba;

fn yourcoolfunction(num: u64) -> u64 { return num * num }

describe!(yourcoolfunction, { it!(doeswhatyouthinkitdoes, { let coolresult = yourcoolfunction(5); expect!(cool_result; to equal 25) });

it!(doesnotdowhatitshouldnot, { let coolresult = yourcoolfunction(10); expect!(coolresult; to not_equal 7) }); }); ```