Anton Pevtsov wrote:
The updated tests are here:
http://people.apache.org/~antonp/stdcxx05252006a/
Now all tests cases are used to exercise the exception safety.
Awesome! Please commit ASAP! :)
Martin
Change Log:
2006-05-25 Anton Pevtsov <[EMAIL PROTECTED]>
* 21.string.replace.cpp (test_replace): Updated the
expected_throw value
calculating mechanism.
* 21.string.append.cpp (test cases): Changed the meaning of
(tcase.bthrow == 0) to enable the testing of exception safety,
and used -1 to disable.
(Test, MemFun): Removed unused typedefs.
(test_replace): Renamed throw_after to throw_count to better
reflect the purpose of the variable
Set UserAlloc::allocate() to throw bad_alloc analogously to
operator new.
Exercised exception safety in each test case by default (i.e.,
when tcase.bthrow == 0).
* 21.string.assign.cpp: Same
* 21.string.insert.cpp: Same
* 21.string.op.plus.equal.cpp: Same
With best wishes,
Anton Pevtsov