summaryrefslogtreecommitdiff
path: root/t/idna.t
blob: da2ad98c9419d53db4e6cd7c18eef0975a8643d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use strict;
use warnings;

use utf8;
use Test::More tests => 7;
use URI::_idna;

is URI::_idna::encode("www.example.com"), "www.example.com";
is URI::_idna::decode("www.example.com"), "www.example.com";
is URI::_idna::encode("www.example.com."), "www.example.com.";
is URI::_idna::decode("www.example.com."), "www.example.com.";
is URI::_idna::encode("Bücher.ch"), "xn--bcher-kva.ch";
is URI::_idna::decode("xn--bcher-kva.ch"), "bücher.ch";
is URI::_idna::decode("xn--bcher-KVA.ch"), "bücher.ch";