Tests for vector(size_t) constructor?

View: New views
2 Messages — Rating Filter:   Alert me  

Tests for vector(size_t) constructor?

by Eric Lemings-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I don't see any tests for the vector(size_t) constructor anywhere.  Am I
not looking in the right place?

Thanks,
Brad.

Re: Tests for vector(size_t) constructor?

by Martin Sebor :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Eric Lemings wrote:
> I don't see any tests for the vector(size_t) constructor anywhere.  Am I
> not looking in the right place?

I don't know. Where are you looking? ;-)

The test that should exercise it is 23.vector.cons.cpp. I don't
see the the vector::vector(size_type) ctor being exercised in
there so unless there's another test for it hiding somewhere
it's not being tested at all :( There are whole classes that
we don't have tests for, so it wouldn't surprise me if this
one little overload wasn't tested either.

Martin
LightInTheBox - Buy quality products at wholesale price!