Skip to content

nwmcsween/detest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Detest - A Simple C11 test framework

Features:

  • No dynamic allocations.

  • No standard library usage (except for vsnprintf).

  • Thread safe via _Atomic.

  • No macro magic, explicit and somewhat simple.

Example:

#include "detest.h"

int main(int ac, char *av[])
{
	struct demeta d = { 0 };

	detest("should fail given untrue expression", 1 == 2, &d, 0);
	detest("should succeed given a true expression", 1 == 1, &d, 0);
	detest("should not be printed", 1 == 1, &d, DE_QUIET);

	return dereport(&d);
}

About

Detest - a simple c11 test framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages