1
0
mirror of https://github.com/libuv/libuv synced 2025-03-28 21:13:16 +00:00

test: empty strings are not valid IDNA

This commit is contained in:
Santiago Gimeno 2024-02-07 20:27:58 +01:00
parent 927b2c6719
commit 26c09a7ceb
No known key found for this signature in database
GPG Key ID: F28C3C8DA33C03BE

View File

@ -151,8 +151,8 @@ TEST_IMPL(idna_toascii) {
/* Illegal inputs. */
F("\xC0\x80\xC1\x80", UV_EINVAL); /* Overlong UTF-8 sequence. */
F("\xC0\x80\xC1\x80.com", UV_EINVAL); /* Overlong UTF-8 sequence. */
F("", UV_EINVAL);
/* No conversion. */
T("", "");
T(".", ".");
T(".com", ".com");
T("example", "example");