BPHash
General object hashing library for C++
test_string.cpp
Go to the documentation of this file.
1 /*! \file
2  * \brief Testing of string 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 
14 void test_string(HashType htype,
15  std::vector<HashValue> & all_hashes)
16 {
17  test_fundamental<const char *>(str_test, htype, all_hashes);
18  test_fundamental<std::string>(str_test, htype, all_hashes);
19 }
20 
Helper functions for testing.
void test_string(HashType htype, std::vector< HashValue > &all_hashes)
Definition: test_string.cpp:14
HashType
Type of hash to use.
Definition: Hasher.hpp:25
static std::vector< const char * > str_test