diff options
Diffstat (limited to 'dviware/dvisvgm/tests/HashFunctionTest.cpp')
-rw-r--r-- | dviware/dvisvgm/tests/HashFunctionTest.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/dviware/dvisvgm/tests/HashFunctionTest.cpp b/dviware/dvisvgm/tests/HashFunctionTest.cpp index 64559c5aab..6b287014df 100644 --- a/dviware/dvisvgm/tests/HashFunctionTest.cpp +++ b/dviware/dvisvgm/tests/HashFunctionTest.cpp @@ -2,7 +2,7 @@ ** HashFunctionTest.cpp ** ** ** ** This file is part of dvisvgm -- a fast DVI to SVG converter ** -** Copyright (C) 2005-2019 Martin Gieseking <martin.gieseking@uos.de> ** +** Copyright (C) 2005-2020 Martin Gieseking <martin.gieseking@uos.de> ** ** ** ** This program is free software; you can redistribute it and/or ** ** modify it under the terms of the GNU General Public License as ** @@ -75,13 +75,13 @@ TEST(HashFunctionTest, xxh128) { XXH128HashFunction xxh128; ASSERT_EQ(xxh128.digestSize(), 16); xxh128.update("0123456789"); - EXPECT_EQ(xxh128.digestString(), "942eb242912d99ecb1844fcc57198e3a"); + EXPECT_EQ(xxh128.digestString(), "e353667619ec664b49655fc9692165fb"); xxh128.update("abcdefghij"); - EXPECT_EQ(xxh128.digestString(), "f37bc26b7087c656f0345fdf02a75bc4"); + EXPECT_EQ(xxh128.digestString(), "5f64782bdc987c162389e97fd11aed64"); xxh128.reset(); xxh128.update("0123456789"); - EXPECT_EQ(xxh128.digestString(), "942eb242912d99ecb1844fcc57198e3a"); - vector<uint8_t> bytes = {0x94, 0x2e, 0xb2, 0x42, 0x91, 0x2d, 0x99, 0xec, 0xb1, 0x84, 0x4f, 0xcc, 0x57, 0x19, 0x8e, 0x3a}; + EXPECT_EQ(xxh128.digestString(), "e353667619ec664b49655fc9692165fb"); + vector<uint8_t> bytes = {0xe3, 0x53, 0x66, 0x76, 0x19, 0xec, 0x66, 0x4b, 0x49, 0x65, 0x5F, 0xc9, 0x69, 0x21, 0x65, 0xfb}; EXPECT_EQ(xxh128.digestValue(), bytes); } #endif @@ -128,11 +128,11 @@ TEST(HashFunctionTest, createXXH128) { auto hashfunc = HashFunction::create("xxh128"); ASSERT_TRUE(dynamic_cast<XXH128HashFunction*>(hashfunc.get()) != nullptr); hashfunc->update("0123456789"); - EXPECT_EQ(hashfunc->digestString(), "942eb242912d99ecb1844fcc57198e3a"); + EXPECT_EQ(hashfunc->digestString(), "e353667619ec664b49655fc9692165fb"); hashfunc = HashFunction::create("xxh128", "0123456789"); ASSERT_TRUE(dynamic_cast<XXH128HashFunction*>(hashfunc.get()) != nullptr); - EXPECT_EQ(hashfunc->digestString(), "942eb242912d99ecb1844fcc57198e3a"); + EXPECT_EQ(hashfunc->digestString(), "e353667619ec664b49655fc9692165fb"); } #endif |