Files
boost_unordered/test/unordered/detail_tests.cpp
2009-04-29 10:05:17 +00:00

27 lines
841 B
C++

// Copyright 2009 Daniel James.
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// Test some of the library's implementation details.
#include <boost/unordered_set.hpp>
#include <boost/unordered_map.hpp>
#include <boost/detail/lightweight_test.hpp>
#include <boost/range.hpp>
int main() {
// Test that the prime list has the right length.
//
// It would have been better to automatically set the length in the header
// but that doesn't work on some older compilers.
BOOST_TEST_EQ(
boost::end(boost::unordered_detail::prime_list::value) -
boost::begin(boost::unordered_detail::prime_list::value),
boost::unordered_detail::prime_list::length);
return boost::report_errors();
}