STLSoft - ... Robust, Lightweight, Cross-platform, Template Software ... ATLSTL - Template Software for the Active Template Library COMSTL - The Standard Template Library meets the Component Object Model .netSTL - Standard Template Library meets the Microsoft.NET Common Language Runtime InetSTL - The Standard Template Library meets WinInet MFCSTL - Template Software for the Microsoft Foundation Classes UNIXSTL - Template Software for the UNIX Operating System WinSTL - where the Standard Template Library meets the Win32 API

Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Test Programs

Introduction

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