|
|
|
|
|
|
|
|
|
|
|
|||||||
As of version 1.7.1, unit-tests are built into the source for every library component, and automatically included in a build when compiled with the STLSOFT_UNITTEST pre-processor symbol. For each sub-project there is a unit-test main file in the requisite directory under the test directory, and makefiles for each supported compiler, which create all test files. The common unit-test code is contained in the unittest sub-directory.
In addition, the test programs from the previous versions are still included, providing individual testing of the components in the various sub-projects.
Since they are test programs, they are often neither interesting nor pretty. For example, they make use of the stlsoft_ns_using(), winstl_ns_qual(), etc. macros in order to ensure that they are compilable by the maximum number of compilers.
Some of them are reasonably interesting, however. For example, the control_inserters_test program provides a nice demonstration of the use of the WinSTL listbox/combobox/listview inserter function objects
|
|
| STLSoft Libraries documentation © Synesis Software Pty Ltd, 2001-2004 |