Rafael Espindola | eaeb6d9 | 2016-09-27 15:45:57 +0000 | [diff] [blame] | 1 | //===- 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 | |
| 13 | using namespace llvm; |
| 14 | |
| 15 | TEST(xxhashTest, Basic) { |
| 16 | EXPECT_EQ(0x33bf00a859c4ba3fU, xxHash64("foo")); |
| 17 | EXPECT_EQ(0x48a37c90ad27a659U, xxHash64("bar")); |
| 18 | EXPECT_EQ(0x69196c1b3af0bff9U, |
| 19 | xxHash64("0123456789abcdefghijklmnopqrstuvwxyz")); |
| 20 | } |