forked from cory/tildefriends
libuv 1.45.0, #include cleanup, probably something else.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4308 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
4
deps/libuv/test/test-idna.c
vendored
4
deps/libuv/test/test-idna.c
vendored
@ -104,13 +104,13 @@ TEST_IMPL(utf8_decode1_overrun) {
|
||||
p = b;
|
||||
b[0] = 0x7F;
|
||||
ASSERT_EQ(0x7F, uv__utf8_decode1(&p, b + 1));
|
||||
ASSERT_EQ(p, b + 1);
|
||||
ASSERT_PTR_EQ(p, b + 1);
|
||||
|
||||
/* Multi-byte. */
|
||||
p = b;
|
||||
b[0] = 0xC0;
|
||||
ASSERT_EQ((unsigned) -1, uv__utf8_decode1(&p, b + 1));
|
||||
ASSERT_EQ(p, b + 1);
|
||||
ASSERT_PTR_EQ(p, b + 1);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user