Merge pull request #122 from kkoenig/fix_stringview_test

First arg of vector ctor should be num elements, second should be val…
This commit is contained in:
Neil MacIntosh 2015-10-05 08:49:35 -07:00
commit 3fd9f249da

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());
} }