Skip to content

finaldie/fcunit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fcunit

A light-weight unit test framework for C

API Macros

FCUNIT_ASSERT(expression)
FCUNIT_RUN(unit_test)

Example

#include <stdlib.h>
#include "fcunit.h"

void test_sample()
{
    int a = 1;
    int b = 2;
    FCUNIT_ASSERT(b > a);
}

int main(int argc, char** argv)
{
    FCUNIT_RUN(test_sample);
    return 0;
}

Run Example(Output)

test_sample: ok

About

A light-weight unit test framework for C

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published