mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
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:
commit
3fd9f249da
@ -45,7 +45,7 @@ SUITE(string_view_tests)
|
||||
|
||||
TEST(TestConstructFromStdVector)
|
||||
{
|
||||
std::vector<char> vec('h', 5);
|
||||
std::vector<char> vec(5, 'h');
|
||||
string_view<> v = vec;
|
||||
CHECK(v.length() == vec.size());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user