ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/t/08_idna.t
Revision: 1.3
Committed: Wed Dec 29 04:16:34 2010 UTC (13 years, 5 months ago) by root
Content type: application/x-troff
Branch: MAIN
CVS Tags: rel-7_0, rel-6_0, rel-6_1, rel-5_3, rel-6_14, rel-6_11, rel-6_12, rel-6_13, rel-7_04, rel-7_05, rel-7_07, rel-7_01, rel-7_02, rel-7_03, rel-7_08, rel-7_09, rel-5_31, rel-6_02, rel-6_01, rel-7_16, rel-7_15, rel-7_14, rel-7_13, rel-7_12, rel-7_11, HEAD
Changes since 1.2: +2 -0 lines
Log Message:
first round of ioasync rewrite

File Contents

# Content
1 use utf8;
2
3 use AnyEvent;
4 use AnyEvent::Util;
5
6 $| = 1; print "1..11\n";
7
8 print "ok 1\n";
9
10 print "ko-eka" eq (AnyEvent::Util::punycode_encode "\x{f6}ko" ) ? "" : "not ", "ok 2\n";
11 print "wgv71a" eq (AnyEvent::Util::punycode_encode "\x{65e5}\x{672c}") ? "" : "not ", "ok 3\n";
12
13 print "\x{f6}ko" eq (AnyEvent::Util::punycode_decode "ko-eka") ? "" : "not ", "ok 4\n";
14 print "\x{65e5}\x{672c}" eq (AnyEvent::Util::punycode_decode "wgv71a") ? "" : "not ", "ok 5\n";
15
16 print "www.xn--ko-eka.eu" eq (AnyEvent::Util::idn_to_ascii "www.\x{f6}ko.eu" ) ? "" : "not ", "ok 6\n";
17 print "xn--1-jn6bt1b.co.jp" eq (AnyEvent::Util::idn_to_ascii "\x{65e5}\x{672c}1.co.jp" ) ? "" : "not ", "ok 7\n";
18 print "xn--tda.com" eq (AnyEvent::Util::idn_to_ascii "xn--tda.com" ) ? "" : "not ", "ok 8\n";
19 print "xn--a-ecp.ru" eq (AnyEvent::Util::idn_to_ascii "xn--a-ecp.ru") ? "" : "not ", "ok 9\n";
20 print "xn--wgv71a119e.jp" eq (AnyEvent::Util::idn_to_ascii "\x{65e5}\x{672c}\x{8a9e}\x{3002}\x{ff2a}\x{ff30}") ? "" : "not ", "ok 10\n";
21
22 print "ok 11\n";