diff options
| author | Guillaume Chatelet <gchatelet@google.com> | 2022-08-01 08:46:01 +0000 |
|---|---|---|
| committer | Guillaume Chatelet <gchatelet@google.com> | 2022-08-01 08:47:27 +0000 |
| commit | d3d498fbf639a63a3eaead1409833c1b281fb46c (patch) | |
| tree | 17288c357a25bf944668999b1f530d007c92e989 /libc/test/src/string/memory_utils/utils_test.cpp | |
| parent | de00bd573e94e759300531723a8cf28ac7d26e2f (diff) | |
Reland [libc][NFC] Use STL case for array
This is a reland of https://reviews.llvm.org/D130773
Diffstat (limited to 'libc/test/src/string/memory_utils/utils_test.cpp')
| -rw-r--r-- | libc/test/src/string/memory_utils/utils_test.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libc/test/src/string/memory_utils/utils_test.cpp b/libc/test/src/string/memory_utils/utils_test.cpp index 6b9ece4d6c6a..f76d3a7fe57e 100644 --- a/libc/test/src/string/memory_utils/utils_test.cpp +++ b/libc/test/src/string/memory_utils/utils_test.cpp @@ -6,14 +6,14 @@ // //===----------------------------------------------------------------------===// -#include "src/__support/CPP/Array.h" +#include "src/__support/CPP/array.h" #include "src/string/memory_utils/utils.h" #include "utils/UnitTest/Test.h" namespace __llvm_libc { TEST(LlvmLibcUtilsTest, IsPowerOfTwoOrZero) { - static const cpp::Array<bool, 65> kExpectedValues{ + static const cpp::array<bool, 65> kExpectedValues{ 1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, // 0-15 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 16-31 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 32-47 @@ -25,7 +25,7 @@ TEST(LlvmLibcUtilsTest, IsPowerOfTwoOrZero) { } TEST(LlvmLibcUtilsTest, IsPowerOfTwo) { - static const cpp::Array<bool, 65> kExpectedValues{ + static const cpp::array<bool, 65> kExpectedValues{ 0, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, // 0-15 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 16-31 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 32-47 @@ -37,7 +37,7 @@ TEST(LlvmLibcUtilsTest, IsPowerOfTwo) { } TEST(LlvmLibcUtilsTest, Log2) { - static const cpp::Array<size_t, 65> kExpectedValues{ + static const cpp::array<size_t, 65> kExpectedValues{ 0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, // 0-15 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, // 16-31 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, // 32-47 @@ -49,7 +49,7 @@ TEST(LlvmLibcUtilsTest, Log2) { } TEST(LlvmLibcUtilsTest, LEPowerOf2) { - static const cpp::Array<size_t, 65> kExpectedValues{ + static const cpp::array<size_t, 65> kExpectedValues{ 0, 1, 2, 2, 4, 4, 4, 4, 8, 8, 8, 8, 8, 8, 8, 8, // 0-15 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, // 16-31 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, // 32-47 @@ -61,7 +61,7 @@ TEST(LlvmLibcUtilsTest, LEPowerOf2) { } TEST(LlvmLibcUtilsTest, GEPowerOf2) { - static const cpp::Array<size_t, 66> kExpectedValues{ + static const cpp::array<size_t, 66> kExpectedValues{ 0, 1, 2, 4, 4, 8, 8, 8, 8, 16, 16, 16, 16, 16, 16, 16, // 0-15 16, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, // 16-31 32, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, // 32-47 |
