| Home | Libraries | People | FAQ | More

## Testsuite

### Acceptance tests

Test | Type | Description | If failing...
--- | --- | --- | ---
function_test.cpp | run | Test the capabilities of the `boost::function` class template. | The `boost::function` class template may not be usable on your compiler. However, the library may still be usable via the `boost::functionN` class templates.
function_n_test.cpp | run | Test the capabilities of the `boost::functionN` class templates. |
allocator_test.cpp | run | Test the use of custom allocators. | Allocators are ignored by the implementation.
stateless_test.cpp | run | Test the optimization of stateless function objects in the Boost.Function library. | The exception-safety and performance guarantees given for stateless function objects may not be met by the implementation.
lambda_test.cpp | run | Test the interaction between Boost.Function and Boost.Lambda. | Either Boost.Lambda does not work on the platform, or Boost.Function cannot safely be applied without the use of `boost::unlambda`.
contains_test.cpp | run | Test the operation of the `target` member function and the equality operators. |
function_30.cpp | compile | Test the generation of a Boost.Function function object adaptor accepting 30 arguments. | The Boost.Function library may work for function object adaptors of up to 10 parameters, but will be unable to generate adaptors for an arbitrary number of parameters. Failure often indicates an error in the compiler's preprocessor.
function_arith_cxx98.cpp | run | Test the first tutorial example. |
function_arith_portable.cpp | run | Test the first tutorial example. |
sum_avg_cxx98.cpp | run | Test the second tutorial example. |
sum_avg_portable.cpp | run | Test the second tutorial example. |
mem_fun_cxx98.cpp | run | Test member function example from tutorial. |
mem_fun_portable.cpp | run | Test member function example from tutorial. |
std_bind_cxx98.cpp | run | Test standard binders example from tutorial. |
std_bind_portable.cpp | run | Test standard binders example from tutorial. |
function_ref_cxx98.cpp | run | Test `boost::ref` example from tutorial. |
function_ref_portable.cpp | run | Test `boost::ref` example from tutorial. |

### Negative tests

Test | Type | Description | If failing...
--- | --- | --- | ---
function_test_fail1.cpp | compile-fail | Test the (incorrect!) use of comparisons between Boost.Function function objects. | Intuitive (but incorrect!) code may compile and will give meaningless results.
function_test_fail2.cpp | compile-fail | Test the use of an incompatible function object with Boost.Function | Incorrect code may compile (with potentially unexpected results).

| Copyright © 2001-2004 Douglas Gregor