sample usage

Home Page

this is a screen shot from GNU Emacs 21.3
// 1. include the header file
#include "unit--.h"

// 2. define your own test suites to organize test cases
testSuite(MySuite);

// 3. define test cases, and attach them to some suite
testCase(CompareCase, MySuite)
// 4. write your test code
{
    int x = 1;
    int y = x + 2;
    assertTrue(x < y);
}

unit--, the unit test aid for C++ SourceForge.net Logo