diff options
| author | Guillaume Chatelet <gchatelet@google.com> | 2022-07-29 13:40:08 +0000 |
|---|---|---|
| committer | Guillaume Chatelet <gchatelet@google.com> | 2022-08-01 08:43:05 +0000 |
| commit | 7add0e5fdc5c7cb6f59f60cd436bf161cf9f9eb7 (patch) | |
| tree | bf1db468bb08f5e84ce7dae4ca1156de7a11a014 /libc/test/src/string/memory_utils/utils_test.cpp | |
| parent | 892e6e2200d90e1b3140dc7feda6f46318688441 (diff) | |
[libc][NFC] Use STL case for array
Migrating all private STL code to the standard STL case but keeping it under the CPP namespace to avoid confusion.
Differential Revision: 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 |
