forked from boostorg/unordered
		
	This time for a more limited range of values so that equal values turn up more often. This is a bit shoddy, but seems like the best way to improve the existing tests without too much effort.
		
			
				
	
	
		
			31 lines
		
	
	
		
			821 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			821 B
		
	
	
	
		
			C++
		
	
	
	
	
	
 | 
						|
// Copyright 2006-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)
 | 
						|
 | 
						|
#if !defined(BOOST_UNORDERED_TEST_HELPERS_FWD_HEADER)
 | 
						|
#define BOOST_UNORDERED_TEST_HELPERS_FWD_HEADER
 | 
						|
 | 
						|
#include <string>
 | 
						|
 | 
						|
namespace test
 | 
						|
{
 | 
						|
    typedef enum {
 | 
						|
        default_generator,
 | 
						|
        generate_collisions,
 | 
						|
        limited_range
 | 
						|
    } random_generator;
 | 
						|
 | 
						|
    int generate(int const*, random_generator);
 | 
						|
    char generate(char const*, random_generator);
 | 
						|
    signed char generate(signed char const*, random_generator);
 | 
						|
    std::string generate(std::string const*, random_generator);
 | 
						|
    float generate(float const*, random_generator);
 | 
						|
 | 
						|
    struct base_type {} base;
 | 
						|
    struct derived_type : base_type {} derived;
 | 
						|
}
 | 
						|
 | 
						|
#endif
 | 
						|
 |