/
githubmirror
/
deno
Обзор
Документация
Войти
/
githubmirror
/
deno
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/unit_node/punycode_test.ts
16 строк
436 B
Kenta Moriuchi
chore: Happy New Year 2026 (#31748)
08 янв 2026, 18:28
Не верифицирован
08 янв 2026, 18:28
8193cf9
Код
Авторство
О чём код?
// Copyright 2018-2026 the Deno authors. MIT license. import * as punycode from "node:punycode"; import { assertEquals } from "@std/assert"; Deno.test("regression #19214", () => { const input = "个\uFFFD\uFFFD.hk"; assertEquals(punycode.toASCII(input), "xn--ciq6844ba.hk"); assertEquals(punycode.toUnicode("xn--ciq6844ba.hk"), input); }); Deno.test("Decode empty input", () => { assertEquals(punycode.decode(""), ""); });