We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f386ab commit b0b7b9aCopy full SHA for b0b7b9a
libc/test/src/wchar/wcslen_test.cpp
@@ -12,15 +12,9 @@
12
#include "test/UnitTest/Test.h"
13
14
TEST(LlvmLibcWCSLenTest, EmptyString) {
15
- const wchar_t *empty = L"";
16
-
17
- size_t result = LIBC_NAMESPACE::wcslen(empty);
18
- ASSERT_EQ(size_t{0}, result);
+ ASSERT_EQ(size_t{0}, LIBC_NAMESPACE::wcslen(L""));
19
}
20
21
TEST(LlvmLibcWCSLenTest, AnyString) {
22
- const wchar_t *any = L"Hello World!";
23
24
- size_t result = LIBC_NAMESPACE::wcslen(any);
25
- ASSERT_EQ(size_t{12}, result);
+ ASSERT_EQ(size_t{12}, LIBC_NAMESPACE::wcslen(L"Hello World!"));
26
0 commit comments