/third_party/boost/libs/container_hash/test/ |
D | hash_string_test.cpp | 22 BOOST_HASH_TEST_NAMESPACE::hash<std::string> x1; in string_tests() 23 BOOST_HASH_TEST_NAMESPACE::hash<std::string> x2; in string_tests() 32 BOOST_TEST(x1(value1) == BOOST_HASH_TEST_NAMESPACE::hash_value(value1)); in string_tests() 33 BOOST_TEST(x1(value2) == BOOST_HASH_TEST_NAMESPACE::hash_value(value2)); in string_tests() 34 BOOST_TEST(BOOST_HASH_TEST_NAMESPACE::hash_value(value1) == in string_tests() 35 BOOST_HASH_TEST_NAMESPACE::hash_range(value1.begin(), value1.end())); in string_tests() 36 BOOST_TEST(BOOST_HASH_TEST_NAMESPACE::hash_value(value2) == in string_tests() 37 BOOST_HASH_TEST_NAMESPACE::hash_range(value2.begin(), value2.end())); in string_tests() 48 BOOST_HASH_TEST_NAMESPACE::hash<std::string> hasher; in string0_tests() 63 BOOST_HASH_TEST_NAMESPACE::hash<std::wstring> x1; in wstring_tests() [all …]
|
D | hash_range_test.cpp | 43 BOOST_TEST(x_seed == BOOST_HASH_TEST_NAMESPACE::hash_range(x.begin(), x.end())); in hash_range_tests() 45 BOOST_TEST(BOOST_HASH_TEST_NAMESPACE::hash_range(empty.begin(), empty.end()) in hash_range_tests() 46 == BOOST_HASH_TEST_NAMESPACE::hash_range(x.begin(), x.end())); in hash_range_tests() 47 BOOST_TEST(BOOST_HASH_TEST_NAMESPACE::hash_range(empty.begin(), empty.end()) in hash_range_tests() 48 != BOOST_HASH_TEST_NAMESPACE::hash_range(values1.begin(), values1.end())); in hash_range_tests() 51 BOOST_HASH_TEST_NAMESPACE::hash_combine(x_seed, 10); in hash_range_tests() 52 BOOST_TEST(x_seed == BOOST_HASH_TEST_NAMESPACE::hash_range(x.begin(), x.end())); in hash_range_tests() 54 BOOST_TEST(BOOST_HASH_TEST_NAMESPACE::hash_range(empty.begin(), empty.end()) in hash_range_tests() 55 != BOOST_HASH_TEST_NAMESPACE::hash_range(x.begin(), x.end())); in hash_range_tests() 56 BOOST_TEST(BOOST_HASH_TEST_NAMESPACE::hash_range(values2.begin(), values2.end()) in hash_range_tests() [all …]
|
D | hash_fwd_test_1.cpp | 24 BOOST_HASH_TEST_NAMESPACE::hash<int> hasher_int; in fwd_test1() 25 BOOST_HASH_TEST_NAMESPACE::hash<std::string> hasher_string; in fwd_test1() 26 BOOST_HASH_TEST_NAMESPACE::hash<test::test_type1<int> > hasher_test_int; in fwd_test1() 27 BOOST_HASH_TEST_NAMESPACE::hash<test::test_type1<std::string> > hasher_test_string; in fwd_test1() 39 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed1, 5); in fwd_test2() 40 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed1, 10); in fwd_test2() 43 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed2, std::string("Test1")); in fwd_test2() 44 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed2, std::string("Test2")); in fwd_test2() 46 BOOST_HASH_TEST_NAMESPACE::hash<test::test_type2<int> > hasher_test_int; in fwd_test2() 47 BOOST_HASH_TEST_NAMESPACE::hash<test::test_type2<std::string> > hasher_test_string; in fwd_test2() [all …]
|
D | hash_number_test.cpp | 43 BOOST_TEST(BOOST_HASH_TEST_NAMESPACE::hash_value(T(-5)) == (std::size_t)T(-5)); in numeric_extra_tests() 45 BOOST_TEST(BOOST_HASH_TEST_NAMESPACE::hash_value(T(0)) == (std::size_t)T(0u)); in numeric_extra_tests() 46 BOOST_TEST(BOOST_HASH_TEST_NAMESPACE::hash_value(T(10)) == (std::size_t)T(10u)); in numeric_extra_tests() 47 BOOST_TEST(BOOST_HASH_TEST_NAMESPACE::hash_value(T(25)) == (std::size_t)T(25u)); in numeric_extra_tests() 62 BOOST_HASH_TEST_NAMESPACE::hash<T> x1; in numeric_test() 63 BOOST_HASH_TEST_NAMESPACE::hash<T> x2; in numeric_test() 75 BOOST_TEST(x1(T(-5)) == BOOST_HASH_TEST_NAMESPACE::hash_value(T(-5))); in numeric_test() 76 BOOST_TEST(x1(T(0)) == BOOST_HASH_TEST_NAMESPACE::hash_value(T(0))); in numeric_test() 77 BOOST_TEST(x1(T(10)) == BOOST_HASH_TEST_NAMESPACE::hash_value(T(10))); in numeric_test() 78 BOOST_TEST(x1(T(25)) == BOOST_HASH_TEST_NAMESPACE::hash_value(T(25))); in numeric_test() [all …]
|
D | hash_built_in_array_test.cpp | 30 BOOST_HASH_TEST_NAMESPACE::hash<int[25]> hasher1; in array_int_test() 34 BOOST_HASH_TEST_NAMESPACE::hash<int[1]> hasher2; in array_int_test() 38 BOOST_HASH_TEST_NAMESPACE::hash<int[2]> hasher3; in array_int_test() 41 == BOOST_HASH_TEST_NAMESPACE::hash_range(array1, array1 + length1)); in array_int_test() 43 == BOOST_HASH_TEST_NAMESPACE::hash_range(array2, array2 + length2)); in array_int_test() 45 == BOOST_HASH_TEST_NAMESPACE::hash_range(array3, array3 + length3)); in array_int_test() 51 BOOST_HASH_TEST_NAMESPACE::hash<int[3][2]> hasher; in two_dimensional_array_test() 58 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed2, array[i][j]); in two_dimensional_array_test() 59 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed1, seed2); in two_dimensional_array_test() 63 BOOST_TEST(hasher(array) == BOOST_HASH_TEST_NAMESPACE::hash_range(array, array + 3)); in two_dimensional_array_test()
|
D | hash_value_array_test.cpp | 32 BOOST_HASH_TEST_NAMESPACE::hash<int[25]> hasher1; in array_int_test() 35 BOOST_HASH_TEST_NAMESPACE::hash<int[1]> hasher2; in array_int_test() 38 BOOST_HASH_TEST_NAMESPACE::hash<int[2]> hasher3; in array_int_test() 40 BOOST_TEST(hasher1(array1) == BOOST_HASH_TEST_NAMESPACE::hash_value(array1)); in array_int_test() 41 BOOST_TEST(hasher2(array2) == BOOST_HASH_TEST_NAMESPACE::hash_value(array2)); in array_int_test() 42 BOOST_TEST(hasher3(array3) == BOOST_HASH_TEST_NAMESPACE::hash_value(array3)); in array_int_test() 48 BOOST_HASH_TEST_NAMESPACE::hash<int[3][2]> hasher; in two_dimensional_array_test() 50 BOOST_TEST(hasher(array) == BOOST_HASH_TEST_NAMESPACE::hash_value(array)); in two_dimensional_array_test()
|
D | hash_global_namespace_test.cpp | 63 BOOST_HASH_TEST_NAMESPACE::hash<custom> custom_hasher; in custom_tests() 69 using namespace BOOST_HASH_TEST_NAMESPACE; in custom_tests() 79 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed, custom(5)); in custom_tests() 80 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed, custom(25)); in custom_tests() 81 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed, custom(35)); in custom_tests() 84 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed2, 50u); in custom_tests() 85 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed2, 250u); in custom_tests() 86 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed2, 350u); in custom_tests() 88 BOOST_TEST(seed == BOOST_HASH_TEST_NAMESPACE::hash_range( in custom_tests()
|
D | hash_custom_test.cpp | 62 BOOST_HASH_TEST_NAMESPACE::hash<test::custom> custom_hasher; in custom_tests() 68 using namespace BOOST_HASH_TEST_NAMESPACE; in custom_tests() 78 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed, test::custom(5)); in custom_tests() 79 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed, test::custom(25)); in custom_tests() 80 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed, test::custom(35)); in custom_tests() 83 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed2, 50u); in custom_tests() 84 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed2, 250u); in custom_tests() 85 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed2, 350u); in custom_tests() 87 BOOST_TEST(seed == BOOST_HASH_TEST_NAMESPACE::hash_range( in custom_tests()
|
D | hash_friend_test.cpp | 65 BOOST_HASH_TEST_NAMESPACE::hash<test::custom<int> > custom_hasher; in custom_tests() 71 using namespace BOOST_HASH_TEST_NAMESPACE; in custom_tests() 81 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed, test::custom<int>(5)); in custom_tests() 82 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed, test::custom<int>(25)); in custom_tests() 83 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed, test::custom<int>(35)); in custom_tests() 86 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed2, 50u); in custom_tests() 87 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed2, 250u); in custom_tests() 88 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed2, 350u); in custom_tests() 90 BOOST_TEST(seed == BOOST_HASH_TEST_NAMESPACE::hash_range( in custom_tests()
|
D | hash_fwd_test.hpp | 28 BOOST_HASH_TEST_NAMESPACE::hash<T> hasher; in hash_value() 45 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed, x.value1); in hash_value() 46 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed, x.value2); in hash_value() 64 BOOST_HASH_TEST_NAMESPACE::hash_range(x.values.begin(), x.values.end()); in hash_value() 65 BOOST_HASH_TEST_NAMESPACE::hash_range(seed, x.values.begin(), x.values.end()); in hash_value() 79 BOOST_HASH_TEST_NAMESPACE::hash<T> hasher; in hash_value() 87 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed, x.value1); in hash_value() 88 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed, x.value2); in hash_value() 96 BOOST_HASH_TEST_NAMESPACE::hash_range(x.values.begin(), x.values.end()); in hash_value() 97 BOOST_HASH_TEST_NAMESPACE::hash_range(seed, x.values.begin(), x.values.end()); in hash_value()
|
D | hash_std_smart_ptr_test.cpp | 29 BOOST_HASH_TEST_NAMESPACE::hash<std::shared_ptr<int> > x1; in shared_ptr_tests() 30 BOOST_HASH_TEST_NAMESPACE::hash<std::shared_ptr<int> > x2; in shared_ptr_tests() 43 BOOST_TEST(x1(x) == BOOST_HASH_TEST_NAMESPACE::hash_value(x)); in shared_ptr_tests() 44 BOOST_TEST(x1(ptr1) == BOOST_HASH_TEST_NAMESPACE::hash_value(ptr2)); in shared_ptr_tests() 53 BOOST_HASH_TEST_NAMESPACE::hash<std::unique_ptr<int> > x1; in unique_ptr_tests() 54 BOOST_HASH_TEST_NAMESPACE::hash<std::unique_ptr<int> > x2; in unique_ptr_tests() 66 BOOST_TEST(x1(x) == BOOST_HASH_TEST_NAMESPACE::hash_value(x)); in unique_ptr_tests()
|
D | hash_float_test.hpp | 46 << "Testing " BOOST_STRINGIZE(BOOST_HASH_TEST_NAMESPACE) "::hash<" in float_tests() 73 BOOST_HASH_TEST_NAMESPACE::hash<T> x1; in float_tests() 82 BOOST_TEST(x1(zero) == BOOST_HASH_TEST_NAMESPACE::hash_value(zero)); in float_tests() 83 BOOST_TEST(x1(minus_zero) == BOOST_HASH_TEST_NAMESPACE::hash_value(minus_zero)); in float_tests() 110 BOOST_TEST(x1(infinity) == BOOST_HASH_TEST_NAMESPACE::hash_value(infinity)); in float_tests() 112 == BOOST_HASH_TEST_NAMESPACE::hash_value(minus_infinity)); in float_tests() 195 BOOST_TEST(x1(max) == BOOST_HASH_TEST_NAMESPACE::hash_value(max)); in float_tests() 196 BOOST_TEST(x1(half_max) == BOOST_HASH_TEST_NAMESPACE::hash_value(half_max)); in float_tests() 197 BOOST_TEST(x1(quarter_max) == BOOST_HASH_TEST_NAMESPACE::hash_value(quarter_max)); in float_tests() 199 BOOST_HASH_TEST_NAMESPACE::hash_value(three_quarter_max)); in float_tests() [all …]
|
D | link_ext_test.cpp | 8 #define BOOST_HASH_TEST_NAMESPACE boost macro 16 BOOST_HASH_TEST_NAMESPACE::hash<int*> ptr_hasher; in f() 24 BOOST_HASH_TEST_NAMESPACE::hash<std::vector<std::size_t> > vector_hasher; in f() 25 return vector_hasher(x) != BOOST_HASH_TEST_NAMESPACE::hash_value(x); in f()
|
D | hash_pointer_test.cpp | 23 BOOST_HASH_TEST_NAMESPACE::hash<int*> x1; in pointer_tests() 24 BOOST_HASH_TEST_NAMESPACE::hash<int*> x2; in pointer_tests() 33 BOOST_TEST(x1(&int1) == BOOST_HASH_TEST_NAMESPACE::hash_value(&int1)); in pointer_tests() 34 BOOST_TEST(x1(&int2) == BOOST_HASH_TEST_NAMESPACE::hash_value(&int2)); in pointer_tests()
|
D | hash_type_index_test.cpp | 21 BOOST_HASH_TEST_NAMESPACE::hash<std::type_index> hasher; in test_type_index() 34 BOOST_TEST(BOOST_HASH_TEST_NAMESPACE::hash_value(int_index) == int_index.hash_code()); in test_type_index() 35 BOOST_TEST(BOOST_HASH_TEST_NAMESPACE::hash_value(int_index) == int2_index.hash_code()); in test_type_index() 36 BOOST_TEST(BOOST_HASH_TEST_NAMESPACE::hash_value(char_index) == char_index.hash_code()); in test_type_index()
|
D | hash_enum_test.cpp | 34 BOOST_HASH_TEST_NAMESPACE::hash<test::enum1> hash1; in main() 35 BOOST_HASH_TEST_NAMESPACE::hash<test::enum2> hash2; in main() 36 BOOST_HASH_TEST_NAMESPACE::hash<test::enum3> hash3; in main() 37 BOOST_HASH_TEST_NAMESPACE::hash<test::enum4> hash4; in main() 53 BOOST_HASH_TEST_NAMESPACE::hash<test::enum_override> hash_override; in main()
|
D | hash_function_pointer_test.cpp | 27 BOOST_HASH_TEST_NAMESPACE::hash<void(*)()> hasher_void; in function_pointer_tests() 28 BOOST_HASH_TEST_NAMESPACE::hash<int(*)(int)> hasher_int; in function_pointer_tests() 43 == BOOST_HASH_TEST_NAMESPACE::hash_value(&void_func1)); in function_pointer_tests() 45 == BOOST_HASH_TEST_NAMESPACE::hash_value(&int_func1)); in function_pointer_tests()
|
D | hash_sequence_test.hpp | 41 BOOST_HASH_TEST_NAMESPACE::hash<T> hasher; 47 BOOST_HASH_TEST_NAMESPACE::hash_value(containers[i2])); 50 == BOOST_HASH_TEST_NAMESPACE::hash_range(
|
D | hash_map_test.hpp | 39 BOOST_HASH_TEST_NAMESPACE::hash<T> hasher; 45 BOOST_HASH_TEST_NAMESPACE::hash_value(containers[i2])); 48 == BOOST_HASH_TEST_NAMESPACE::hash_range(
|
D | hash_set_test.hpp | 44 BOOST_HASH_TEST_NAMESPACE::hash<T> hasher; 50 BOOST_HASH_TEST_NAMESPACE::hash_value(containers[i2])); 53 == BOOST_HASH_TEST_NAMESPACE::hash_range(
|
D | link_no_ext_test.cpp | 8 #define BOOST_HASH_TEST_NAMESPACE boost macro 16 BOOST_HASH_TEST_NAMESPACE::hash<int*> ptr_hasher; in main()
|
D | config.hpp | 8 # define BOOST_HASH_TEST_NAMESPACE std macro 10 # define BOOST_HASH_TEST_NAMESPACE boost macro
|
D | compile_time.hpp | 14 typename BOOST_HASH_TEST_NAMESPACE::hash<T>::argument_type in compile_time_tests() 17 typename BOOST_HASH_TEST_NAMESPACE::hash<T>::result_type in compile_time_tests()
|
D | hash_no_ext_macro_1.cpp | 32 BOOST_HASH_TEST_NAMESPACE::hash<std::deque<int> > hasher; in main() 33 BOOST_TEST(hasher(x) == BOOST_HASH_TEST_NAMESPACE::hash_value(x)); in main()
|
D | hash_no_ext_macro_2.cpp | 32 BOOST_HASH_TEST_NAMESPACE::hash<std::map<int, int> > hasher; in main() 33 BOOST_TEST(hasher(x) == BOOST_HASH_TEST_NAMESPACE::hash_value(x)); in main()
|