Skip to content

Commit

Permalink
Rename append_container_cx.cpp to append_vector_cx.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Nov 3, 2024
1 parent c4a7262 commit 67c3f3f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion test/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 7 additions & 7 deletions test/append_container_cx.cpp → test/append_vector_cx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ template<class Hash, class Flavor, class T>
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<T> v( w, w + sizeof(w) / sizeof(w[0]) );

Hash h;
Flavor f{};
Expand All @@ -43,14 +43,14 @@ int main()
{
using namespace boost::hash2;

TEST_EQ( (test<fnv1a_32, little_endian_flavor, std::vector<unsigned char>>()), 2227238665 );
TEST_EQ( (test<fnv1a_32, big_endian_flavor, std::vector<unsigned char>>()), 3245468929 );
TEST_EQ( (test<fnv1a_32, little_endian_flavor, unsigned char>()), 2227238665 );
TEST_EQ( (test<fnv1a_32, big_endian_flavor, unsigned char>()), 3245468929 );

TEST_EQ( (test<fnv1a_32, little_endian_flavor, std::vector<int>>()), 1745310485 );
TEST_EQ( (test<fnv1a_32, big_endian_flavor, std::vector<int>>()), 3959736277 );
TEST_EQ( (test<fnv1a_32, little_endian_flavor, int>()), 1745310485 );
TEST_EQ( (test<fnv1a_32, big_endian_flavor, int>()), 3959736277 );

TEST_EQ( (test<fnv1a_32, little_endian_flavor, std::vector<double>>()), 1949716516 );
TEST_EQ( (test<fnv1a_32, big_endian_flavor, std::vector<double>>()), 2651227990 );
TEST_EQ( (test<fnv1a_32, little_endian_flavor, double>()), 1949716516 );
TEST_EQ( (test<fnv1a_32, big_endian_flavor, double>()), 2651227990 );

return boost::report_errors();
}

0 comments on commit 67c3f3f

Please sign in to comment.