First arg of vector ctor should be num elements, second should be value. Fixes issue #121

This commit is contained in:
kkoenig 2015-10-03 22:02:49 -07:00
parent f0262f5099
commit 144ee44132

View File

@ -45,7 +45,7 @@ SUITE(string_view_tests)
TEST(TestConstructFromStdVector) TEST(TestConstructFromStdVector)
{ {
std::vector<char> vec('h', 5); std::vector<char> vec(5, 'h');
string_view<> v = vec; string_view<> v = vec;
CHECK(v.length() == vec.size()); CHECK(v.length() == vec.size());
} }