George van den Driessche Guest
|
Posted: Wed Oct 20, 2004 4:26 pm Post subject: 'Free' Standard Library test suites? |
|
|
Suppose that I've written a class whose interface and behaviour are intended
to mimic those of, say, std::set<>. Now I want to know that I have included
all the typedefs and methods of std::set. The Boost Concept Check classes
can help me with the syntactic interface. But is there any readily available
test suite to check the semantics of my new class? It would check that
empty() is a postcondition of clear(), for example, or that insert()
maintains the sorted invariant.
Thanks,
George
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
|
|