Permalink
Browse files

get t/api_call.t from Net-IDN-IDNA2003

  • Loading branch information...
2 parents cae929f + a8b6b24 commit 87bc4001d85e2720a4cb33dc26ab6ad03ed31cf5 @cfaerber committed Jan 1, 2012
Showing with 15 additions and 0 deletions.
  1. +15 −0 t/api_call.t
View
@@ -0,0 +1,15 @@
+use bytes;
+use strict;
+
+use Test::More tests => 1+6;
+use Test::NoWarnings;
+
+use Net::IDN::IDNA2003 qw(:all);
+
+is(idna2003_to_ascii('müller'),'xn--mller-kva');
+is(Net::IDN::IDNA2003::to_ascii('müller'),'xn--mller-kva');
+is(Net::IDN::IDNA2003::idna2003_to_ascii('müller'),'xn--mller-kva');
+
+is(idna2003_to_unicode('xn--mller-kva'),'müller');
+is(Net::IDN::IDNA2003::to_unicode('xn--mller-kva'),'müller');
+is(Net::IDN::IDNA2003::idna2003_to_unicode('xn--mller-kva'),'müller');

0 comments on commit 87bc400

Please sign in to comment.