summaryrefslogtreecommitdiff
path: root/t/idna.t
blob: 859d4b9c26064e783f5602cd6f403b99ad4495ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!perl -w

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";