BPHash
General object hashing library for C++
test_floating.cpp
Go to the documentation of this file.
1 /*! \file
2  * \brief Testing of floating point types
3  */
4 
5 /* Copyright (c) 2016 Benjamin Pritchard <ben@bennyp.org>
6  * This file is part of the BPHash project, which is released
7  * under the BSD 3-clause license. See the LICENSE file for details
8  */
9 
10 #include "test_helpers.hpp"
11 
12 using namespace bphash;
13 
15  std::vector<HashValue> & all_hashes)
16 {
17  test_fundamental<float >(dbl_test, htype, all_hashes);
18  test_fundamental<double >(dbl_test, htype, all_hashes);
19 }
20 
Helper functions for testing.
void test_floating(HashType htype, std::vector< HashValue > &all_hashes)
static const std::vector< double > dbl_test
HashType
Type of hash to use.
Definition: Hasher.hpp:25