From 67c3f3fda37e39469514e6d18c90aafa1c8b6962 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 3 Nov 2024 22:12:57 +0200 Subject: [PATCH] Rename append_container_cx.cpp to append_vector_cx.cpp --- test/Jamfile | 2 +- ...ppend_container_cx.cpp => append_vector_cx.cpp} | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) rename test/{append_container_cx.cpp => append_vector_cx.cpp} (64%) diff --git a/test/Jamfile b/test/Jamfile index 1633aae..40c6328 100644 --- a/test/Jamfile +++ b/test/Jamfile @@ -79,7 +79,7 @@ compile append_byte_sized_cx.cpp ; run append_integer_cx.cpp ; run append_character_cx.cpp ; run append_floating_point_cx.cpp ; -run append_container_cx.cpp ; +run append_vector_cx.cpp ; run append_string_cx.cpp ; # non-cryptographic diff --git a/test/append_container_cx.cpp b/test/append_vector_cx.cpp similarity index 64% rename from test/append_container_cx.cpp rename to test/append_vector_cx.cpp index fbf642a..b9236d4 100644 --- a/test/append_container_cx.cpp +++ b/test/append_vector_cx.cpp @@ -17,7 +17,7 @@ template BOOST_CXX14_CONSTEXPR typename Hash::result_type test() { unsigned char w[] = { 1, 2, 3, 4 }; - T v( w, w + sizeof(w) / sizeof(w[0]) ); + std::vector v( w, w + sizeof(w) / sizeof(w[0]) ); Hash h; Flavor f{}; @@ -43,14 +43,14 @@ int main() { using namespace boost::hash2; - TEST_EQ( (test>()), 2227238665 ); - TEST_EQ( (test>()), 3245468929 ); + TEST_EQ( (test()), 2227238665 ); + TEST_EQ( (test()), 3245468929 ); - TEST_EQ( (test>()), 1745310485 ); - TEST_EQ( (test>()), 3959736277 ); + TEST_EQ( (test()), 1745310485 ); + TEST_EQ( (test()), 3959736277 ); - TEST_EQ( (test>()), 1949716516 ); - TEST_EQ( (test>()), 2651227990 ); + TEST_EQ( (test()), 1949716516 ); + TEST_EQ( (test()), 2651227990 ); return boost::report_errors(); }