1 //===- llvm/unittest/Support/xxhashTest.cpp -------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #include "llvm/Support/xxhash.h"
11 #include "gtest/gtest.h"
15 TEST(xxhashTest, Basic) {
16 EXPECT_EQ(0x33bf00a859c4ba3fU, xxHash64("foo"));
17 EXPECT_EQ(0x48a37c90ad27a659U, xxHash64("bar"));
18 EXPECT_EQ(0x69196c1b3af0bff9U,
19 xxHash64("0123456789abcdefghijklmnopqrstuvwxyz"));