Skip to content

Commit

Permalink
fixed testing issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
tokuhirom committed Oct 19, 2011
1 parent 8ca49da commit c820d7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/02_unicode.t
Expand Up @@ -16,14 +16,14 @@ xxx('softbank', '', ''); # unmapped

subtest 'iphone' => sub {
my $ma = HTTP::MobileAgent->new('Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1C28 Safari/419.3');
is(HTML::Pictogram::MobileJp->convert($ma, ''), '');
is(HTML::Pictogram::MobileJp::Unicode->convert($ma, ''), '');
};

done_testing;

sub xxx {
my ($type, $html, $expected) = @_;
my $ma = HTTP::MobileAgent->new(test_mobile_agent_headers($type));
is(HTML::Pictogram::MobileJp::Unicode->convert($ma, $html), $expected);
is(HTML::Pictogram::MobileJp::Unicode->convert($ma, $html), $expected, $type);
}

0 comments on commit c820d7c

Please sign in to comment.