hash_set_test.cpp 832 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // Copyright 2005-2009 Daniel James.
  2. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  3. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  4. #include "./config.hpp"
  5. #ifdef BOOST_HASH_TEST_EXTENSIONS
  6. # ifdef BOOST_HASH_TEST_STD_INCLUDES
  7. # include <functional>
  8. # else
  9. # include <boost/container_hash/hash.hpp>
  10. # endif
  11. #endif
  12. #include <boost/core/lightweight_test.hpp>
  13. #ifdef BOOST_HASH_TEST_EXTENSIONS
  14. #include <set>
  15. using std::set;
  16. #define CONTAINER_TYPE set
  17. #include "./hash_set_test.hpp"
  18. using std::multiset;
  19. #define CONTAINER_TYPE multiset
  20. #include "./hash_set_test.hpp"
  21. #endif
  22. int main()
  23. {
  24. #ifdef BOOST_HASH_TEST_EXTENSIONS
  25. set_tests::set_hash_integer_tests();
  26. multiset_tests::multiset_hash_integer_tests();
  27. #endif
  28. return boost::report_errors();
  29. }