mirror of
https://github.com/boostorg/unordered.git
synced 2025-05-11 13:34:06 +00:00
https://svn.boost.org/svn/boost/branches/unordered/trunk ........ r42880 | danieljames | 2008-01-20 16:10:43 +0000 (Sun, 20 Jan 2008) | 17 lines Simplify the tests a little: Add a parameter to random_values to control what sort of values it generates. This means that instead of using equivalent_object to test collisions (which was a total hack) we now just need another parameter. This requires some meta programming to act differently for maps and sets. Because of this pairs no longer need to be generated so remove the code for doing that (which doesn't work on some compilers). Remove the generator object, just call generate directly. Remove some of the tests using int containers, they didn't really add to anthing other than the compile time (some tests are timing out). ........ [SVN r42882]
25 lines
603 B
C++
25 lines
603 B
C++
|
|
// Copyright 2006-2007 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)
|
|
|
|
#if !defined(BOOST_UNORDERED_TEST_HELPERS_FWD_HEADER)
|
|
#define BOOST_UNORDERED_TEST_HELPERS_FWD_HEADER
|
|
|
|
#include <string>
|
|
|
|
namespace test
|
|
{
|
|
int generate(int const*);
|
|
char generate(char const*);
|
|
signed char generate(signed char const*);
|
|
std::string generate(std::string*);
|
|
float generate(float const*);
|
|
|
|
struct base_type {} base;
|
|
struct derived_type : base_type {} derived;
|
|
}
|
|
|
|
#endif
|
|
|