mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-29 16:52:28 +00:00
Get LIBC_FMT to build for aarch64
This commit is contained in:
parent
036b9a0002
commit
7e46645193
15 changed files with 482 additions and 618 deletions
|
@ -95,6 +95,10 @@ TEST(strnlen_s, null_ReturnsZero) {
|
|||
ASSERT_EQ(0, strnlen_s(NULL, 3));
|
||||
}
|
||||
|
||||
TEST(wcsnlen_s, null_ReturnsZero) {
|
||||
ASSERT_EQ(0, wcsnlen_s(NULL, 3));
|
||||
}
|
||||
|
||||
TEST(strnlen, nulNotFound_ReturnsSize) {
|
||||
int sizes[] = {1, 2, 7, 8, 15, 16, 31, 32, 33};
|
||||
for (unsigned i = 0; i < ARRAYLEN(sizes); ++i) {
|
||||
|
@ -110,6 +114,11 @@ TEST(strnlen_s, nulNotFound) {
|
|||
ASSERT_EQ(3, strnlen_s(buf, 3));
|
||||
}
|
||||
|
||||
TEST(wcsnlen_s, nulNotFound) {
|
||||
wchar_t buf[3] = {1, 2, 3};
|
||||
ASSERT_EQ(3, wcsnlen_s(buf, 3));
|
||||
}
|
||||
|
||||
TEST(strlen, fuzz) {
|
||||
char *b;
|
||||
size_t n, n1, n2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue