For these exercises you need to download the following zip file. A samle C-unit test case and VisualStudio workspace is located in classictest/EX3/GCD. Similar C-unit test case and makefile for Linux/GCC is located in classictest/EX3/GCD/GNU-GCD
Triangle Classification: A somewhat larger example is provided by the triangleClassification DEMO (VISUAL Studio) showing how several program compoenets can be tested and structured in several test suites. Study the example and extend this with your own test cases,
Note if you use Windows+MinGW toolchain:
It should run both on Linux and Windows provided that gcc and make are installed (make on Linux and mingw32-make on Windows). However, I could not force mingw32-make to detect the CUnit installation in current directory, so it might be neccessary to run it with CU_HOME parameter, like: mingw32-make CU_HOME=CUnit-2.1-0-Windows There's also CUnit-2.1-0-Linux with headers and libs which are detected automatically on Linux. Although most distributions (Debian, Ubuntu, Gentoo, RedHat) have CUnit natively it can be difficult to get it from sf.net.
Arne & Brian