mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
First arg of vector ctor should be num elements, second should be value. Fixes issue #121
This commit is contained in:
parent
f0262f5099
commit
144ee44132
@ -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());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user