a unit test of c/c++