Skip to content

Commit

Permalink
added IDN test file
Browse files Browse the repository at this point in the history
  • Loading branch information
majuscule committed Jun 11, 2012
1 parent 647dbe3 commit 2817b42
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions t/IDN.t
@@ -0,0 +1,20 @@
#!/usr/bin/env perl

use strict;
use warnings;
use Test::More;
use DDG::Test::Goodie;

zci answer_type => 'idn';
zci is_cached => 0;

ddg_goodie_test(
[qw(
DDG::Goodie::IDN
)],
'idn Bücher.ch' => test_zci('encoded IDN: xn--bcher-kva.ch'),
'idn xn--bcher-kva.ch' => test_zci('decoded IDN: Bücher.ch'),
);

done_testing;

0 comments on commit 2817b42

Please sign in to comment.