Boost logo

Boost :

From: Rozental, Gennadiy (gennadiy.rozental_at_[hidden])
Date: 2003-01-29 13:38:21


> template<typename T>
> class atanh_tester
> {
> public:
> atanh_tester(char *)
> {
> }
>
> void operator () ()
> {
> // whatever
> }
> };
>
> how can I add a test case to "test" buit from an instance of
> atanh_tester<float> ?

Use unit_test_suite_ex.hpp. It allows to supply boost::function0<void> as a
test case.

See unit_test_suite_ex_test.cpp for example.

Gennadiy.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk