From d2986d9a64c2bb74513dad8874136064d262423b Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Fri, 29 Apr 2022 02:01:46 +0300 Subject: [PATCH] Test boost::core::string_view in hash_string_test2 --- test/hash_string_test2.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/hash_string_test2.cpp b/test/hash_string_test2.cpp index abca666..4dc67d9 100644 --- a/test/hash_string_test2.cpp +++ b/test/hash_string_test2.cpp @@ -2,8 +2,9 @@ // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt -#include #include +#include +#include #include #include #include @@ -25,6 +26,7 @@ int main() std::string s( "Test." ); BOOST_TEST_EQ( hv( s ), hv( boost::string_view( s ) ) ); + BOOST_TEST_EQ( hv( s ), hv( boost::core::string_view( s ) ) ); #if !defined(BOOST_NO_CXX17_HDR_STRING_VIEW) BOOST_TEST_EQ( hv( s ), hv( std::string_view( s ) ) );