From 144ee44132d920ac8d8189c32ad07853119cd2e4 Mon Sep 17 00:00:00 2001 From: kkoenig Date: Sat, 3 Oct 2015 22:02:49 -0700 Subject: [PATCH] First arg of vector ctor should be num elements, second should be value. Fixes issue #121 --- tests/string_view_tests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/string_view_tests.cpp b/tests/string_view_tests.cpp index 84b7f3f..fb57845 100644 --- a/tests/string_view_tests.cpp +++ b/tests/string_view_tests.cpp @@ -45,7 +45,7 @@ SUITE(string_view_tests) TEST(TestConstructFromStdVector) { - std::vector vec('h', 5); + std::vector vec(5, 'h'); string_view<> v = vec; CHECK(v.length() == vec.size()); }