Commit d9a2b372 authored by kraus's avatar kraus

change HashNameGeneratorTest to use UUIDs instead of SHA-1 hashes

parent e3fcae8c
#include "Util/HashNameGenerator.h"
#include "Util/UUIDNameGenerator.h"
#include "gtest/gtest.h"
#include <fstream>
namespace {
......@@ -36,9 +37,8 @@ namespace {
params.push_back("sigmax=5.05");
params.push_back("sigmay=6.05");
std::string hash = HashNameGenerator::generate(params);
std::string expected = "2d6ea8be68514560d38cf107709163668906c8a9";
std::string hash = UUIDNameGenerator::generate(params);
std::string expected = "ccee6325-cc2a-5773-b39a-dabfcbeb6a38";
ASSERT_STREQ(expected.c_str(), hash.c_str());
}
......@@ -47,4 +47,4 @@ namespace {
int main(int argc, char **argv) {
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment