From 17ca704d3a1ba5dc7da8fdfacdaea733acd2c340 Mon Sep 17 00:00:00 2001 From: Will Frey Date: Fri, 21 Jul 2017 23:07:07 -0400 Subject: [PATCH] Update test.cpp This test was failing for me when I compiled with clang. Must have a different initializer. I changed the test to match the example from the README and it passes when I build with both clang and gcc. --- test_drivers/smoke_test/test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_drivers/smoke_test/test.cpp b/test_drivers/smoke_test/test.cpp index 70d6f15d3..d7bc4268e 100644 --- a/test_drivers/smoke_test/test.cpp +++ b/test_drivers/smoke_test/test.cpp @@ -153,7 +153,7 @@ int main() //replace_invalid char invalid_sequence[] = "a\x80\xe0\xa0\xc0\xaf\xed\xa0\x80z"; - vector replace_invalid_result(50); + vector replace_invalid_result; replace_invalid (invalid_sequence, invalid_sequence + sizeof(invalid_sequence), replace_invalid_result.begin(), '?'); bvalid = is_valid(replace_invalid_result.begin(), replace_invalid_result.end()); assert (bvalid); -- 2.40.0