Skip to content

Fuwn/tatl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tatl

Tiny Test Framework for C89

Usage

For simply C++ integration, checkout Tael!

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.

Macro

Tatl can be used via an included set of utility macros.

#include <tatl/macros.h>

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;
}

The output with the previous example:

running 4 tests
dummy ... ok (0ms)
add works ... ok (0ms)
dummy long ... ok (0ms)
should fail ... FAILED (0ms)

test result: FAILED. 3 passed (4 steps); 1 failed (0ms)

Examples

More examples can be found in the examples/ directory.

License

This project is licensed with the GNU General Public License v3.0.

About

🗣 Tiny Test Framework for C89

Topics

Resources

License

Stars

Watchers

Forks