|
17 | 17 | * under the License. |
18 | 18 | */ |
19 | 19 |
|
20 | | -#include <gtest/gtest.h> |
| 20 | +#include "iceberg/util/string_utils.h" |
21 | 21 |
|
22 | | -#include "iceberg/util/string_utils_internal.h" |
| 22 | +#include <gtest/gtest.h> |
23 | 23 |
|
24 | 24 | namespace iceberg { |
25 | 25 |
|
26 | 26 | TEST(StringUtilsTest, ToLower) { |
27 | | - ASSERT_EQ(internal::StringUtils::ToLower("AbC"), "abc"); |
28 | | - ASSERT_EQ(internal::StringUtils::ToLower("A-bC"), "a-bc"); |
29 | | - ASSERT_EQ(internal::StringUtils::ToLower("A_bC"), "a_bc"); |
30 | | - ASSERT_EQ(internal::StringUtils::ToLower(""), ""); |
31 | | - ASSERT_EQ(internal::StringUtils::ToLower(" "), " "); |
32 | | - ASSERT_EQ(internal::StringUtils::ToLower("123"), "123"); |
| 27 | + ASSERT_EQ(StringUtils::ToLower("AbC"), "abc"); |
| 28 | + ASSERT_EQ(StringUtils::ToLower("A-bC"), "a-bc"); |
| 29 | + ASSERT_EQ(StringUtils::ToLower("A_bC"), "a_bc"); |
| 30 | + ASSERT_EQ(StringUtils::ToLower(""), ""); |
| 31 | + ASSERT_EQ(StringUtils::ToLower(" "), " "); |
| 32 | + ASSERT_EQ(StringUtils::ToLower("123"), "123"); |
33 | 33 | } |
34 | 34 |
|
35 | 35 | TEST(StringUtilsTest, ToUpper) { |
36 | | - ASSERT_EQ(internal::StringUtils::ToUpper("abc"), "ABC"); |
37 | | - ASSERT_EQ(internal::StringUtils::ToUpper("A-bC"), "A-BC"); |
38 | | - ASSERT_EQ(internal::StringUtils::ToUpper("A_bC"), "A_BC"); |
39 | | - ASSERT_EQ(internal::StringUtils::ToUpper(""), ""); |
40 | | - ASSERT_EQ(internal::StringUtils::ToUpper(" "), " "); |
41 | | - ASSERT_EQ(internal::StringUtils::ToUpper("123"), "123"); |
| 36 | + ASSERT_EQ(StringUtils::ToUpper("abc"), "ABC"); |
| 37 | + ASSERT_EQ(StringUtils::ToUpper("A-bC"), "A-BC"); |
| 38 | + ASSERT_EQ(StringUtils::ToUpper("A_bC"), "A_BC"); |
| 39 | + ASSERT_EQ(StringUtils::ToUpper(""), ""); |
| 40 | + ASSERT_EQ(StringUtils::ToUpper(" "), " "); |
| 41 | + ASSERT_EQ(StringUtils::ToUpper("123"), "123"); |
42 | 42 | } |
43 | 43 |
|
44 | 44 | } // namespace iceberg |
0 commit comments