Overview     Usage     Performance Notes     Links tst 0.68 - 23 Jan 2009

Test Suite

All tests require the Boost library to compile.

Concept checks

The file tst_concept_checks.cpp performs a compile-time test of structured containers.
A class StructuredAssociativeContainer is defined, which contains prototypes of all required methods for structured containers (also class ternary_tree). Relevant concepts from boost/concept_check.hpp are used to check the structured set/map containers.

Correctness tests

The subdirectory test in the distribution contains a bunch of files hacked up during development. All these tests are performed by a single main test file test_tst.cpp. This file includes individual .cpp files, since we use a simplified (hacked) version of the Boost.Test harness.

Each test prints a single line to std::cerr saying whether the test was "OK" or "FAIL". A line is added if an exception was thrown.

These are runtime tests, several which require a file name to a dictionary-type file, a plain-text file with one word per line. The file fill_dictionary.cpp must be compiled with test projects, it reads a dictionary file and fills a std::vector with strings.

Dictionary files can be found by an internet search (try eg "dictionary file").

To do

Proper organization and cleanup of this part of our library will be required before 1.0 release.


ternary_tree 0.68 -- by rasmus ekman -- Page generated with Doxygen 1.5.6 on 23 Jan 2009