diff options
author | Alexey Samsonov <samsonov@google.com> | 2013-08-14 16:03:29 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2013-08-14 16:03:29 +0000 |
commit | ef7aefc53bf24214f489bf9e4100bcff45f7b12a (patch) | |
tree | c0cea3f882e2a1f4f1d084b69adcd66ab1a5addc /unittests/Support/CompressionTest.cpp | |
parent | 14a5c695a9a4dc773cfc37c0c4a847e0160e5396 (diff) | |
download | external_llvm-ef7aefc53bf24214f489bf9e4100bcff45f7b12a.zip external_llvm-ef7aefc53bf24214f489bf9e4100bcff45f7b12a.tar.gz external_llvm-ef7aefc53bf24214f489bf9e4100bcff45f7b12a.tar.bz2 |
Expose CRC-32 implementation from zlib
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188380 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Support/CompressionTest.cpp')
-rw-r--r-- | unittests/Support/CompressionTest.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/unittests/Support/CompressionTest.cpp b/unittests/Support/CompressionTest.cpp index c8e2cd9..c0a9ada 100644 --- a/unittests/Support/CompressionTest.cpp +++ b/unittests/Support/CompressionTest.cpp @@ -63,6 +63,12 @@ TEST(CompressionTest, Zlib) { TestZlibCompression(BinaryDataStr, zlib::DefaultCompression); } +TEST(CompressionTest, ZlibCRC32) { + EXPECT_EQ( + 0x414FA339U, + zlib::crc32(StringRef("The quick brown fox jumps over the lazy dog"))); +} + #endif } |