From 8fb3effc578333e992636d7d82d2ecab29e77a5a Mon Sep 17 00:00:00 2001 From: Fuwn Date: Tue, 14 Jun 2022 20:15:41 +0000 Subject: docs(readme): add instructions --- README.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..f3a04f3 --- /dev/null +++ b/README.md @@ -0,0 +1,37 @@ +

Tatl

+

Tiny Test Framework for C89

+ +## Usage + +### Complex + +Tatl can be used via it's included testing context and utilities. + +An example of this method of using Tatl can be seen in +[`examples/addition.c`](examples/addition.c). + +### Macro + +Tatl can be used via an included set of utility macros. + +```c +#include + +TATL_TEST(addition_works) { return TATL_IS(2 + 2, 4); } + +int main(void) { + TATL_NEW(); + TATL_ADD("add works", addition_works); + TATL_FINISH(); + + return 0; +} +``` + +## Examples + +More examples can be found in the [`examples/`](examples) directory. + +## License + +This project is licensed with the [GNU General Public License v3.0](LICENSE). -- cgit v1.2.3