blob: 6a88a2d3a5c5c0f85a2c3c3edf11a488fa8648aa [file] [log] [blame]
Rafael Espindolaeaeb6d92016-09-27 15:45:57 +00001//===- llvm/unittest/Support/xxhashTest.cpp -------------------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#include "llvm/Support/xxhash.h"
11#include "gtest/gtest.h"
12
13using namespace llvm;
14
15TEST(xxhashTest, Basic) {
16 EXPECT_EQ(0x33bf00a859c4ba3fU, xxHash64("foo"));
17 EXPECT_EQ(0x48a37c90ad27a659U, xxHash64("bar"));
18 EXPECT_EQ(0x69196c1b3af0bff9U,
19 xxHash64("0123456789abcdefghijklmnopqrstuvwxyz"));
20}