case is a simple test framework for c
Switch branches/tags
Nothing to show
Pull request Compare This branch is 10 commits behind liuliu:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
case.c
case.h
case_main.h

README.md

CASE: a Simple Test Framework for C

Unit test for C should be simple, because C is simple.

For now, this is just a weekend hack to put everything togather.

Thus, a test case can be written like:

TEST_CASE("some test") { ..some code.. }

Simple, no mysterious overhead at all.

For an example, please checkout case.c for details. To compile, use:

gcc case.c

It may only works on Linux 64-bit environment, doesn't work in Windows for sure.