TestCat

Helpful macros for writing test cases.

Examples

TestCat allows you to write your test cases out at the top of a file. This is to improve readability. It makes it easier to see what test cases exist within a file, which is especially useful on PR reviews.

For example ...

```

[cfg(test)]

mod testing { use ::testcat::*;

it!("should allow the user to do x", testuserdoesx); it!("should not allow the user to do y", testydisallowed); it!("should do foo before bar", testfoooverbar);

fn testuserdoes_x() { // code omitted }

fn testydisallowed() { // code omitted }

fn testfooover_bar() { // code omitted } } ```