You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by Liviu Nicoara <ni...@roguewave.com> on 2006/02/17 23:25:31 UTC

23.vector.cons.cpp

I have converted the former vector.cpp to 23.vector.cons.cpp. I kept in
it the types and signatures tests along with the actual ctors tests.

Liviu

Re: 23.vector.cons.cpp

Posted by Martin Sebor <se...@roguewave.com>.
Liviu Nicoara wrote:
> I have converted the former vector.cpp to 23.vector.cons.cpp. I kept in
> it the types and signatures tests along with the actual ctors tests.

Okay, thanks! Committed thus:
http://svn.apache.org/viewcvs?rev=379235&view=rev

It would be good to enhance the test to exercise the template
specialized on class X (instead of int or short) and the ctor
template on the remaining iterator categories in addition to
InputIterators.

Also, if we go with the new name and reduced scope for the test
we should move the tests for vector::iterator to a file of their
own.

Finally, ideally, I would like to rewrite this and the rest of
our tests along the same lines as most of the algorithms tests,
i.e., as a series of small isolated hardcoded test cases, and
avoid algorithmically generating them. The generated tests
tend to be harder to read and, IMO, do not exercise the tested
functionality as well as handcrafted ones can (especially not
the corner cases). Changing the behavior of these tests also
tends to be much more difficult than in the handcrafted case.

Martin