preCICE v3.2.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HashTest.cpp
Go to the documentation of this file.
1#include "testing/Testing.hpp"
2#include "utils/Hash.hpp"
3
4BOOST_AUTO_TEST_SUITE(UtilsTests)
6
9{
11 BOOST_TEST(precice::utils::preciceHash("") == "4d572a0ba37b5812b95a6e7b87898eea");
12}
13
16{
18 BOOST_TEST(precice::utils::preciceHash("A") == "28c1219289105e64885266336db22f68");
19}
20
23{
25 BOOST_TEST(precice::utils::preciceHash("1") == "cecd78530a875345828b93a514cb61c1");
26}
27
30{
32 BOOST_TEST(precice::utils::preciceHash("<precice-configuration></precice-configuration>") == "ea6c463e64ba52f7b887e18452156fe6");
33}
34
BOOST_AUTO_TEST_CASE(Empty)
Definition HashTest.cpp:8
BOOST_AUTO_TEST_SUITE(PreProcess)
BOOST_AUTO_TEST_SUITE_END()
#define PRECICE_TEST()
Definition Testing.hpp:39
#define PRECICE_TEST_SETUP(...)
Creates and attaches a TestSetup to a Boost test case.
Definition Testing.hpp:29
std::string preciceHash(std::string_view s)
creates a portable hash of the given input
Definition Hash.cpp:10