Skip to content

Commit

Permalink
Tidy up to use a regex
Browse files Browse the repository at this point in the history
  • Loading branch information
bobtfish committed Oct 12, 2009
1 parent b285ce5 commit 76e4048
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions t/02-JSON-XS.t
Expand Up @@ -45,11 +45,7 @@ ok(
pretty => 1
)
);
{
my $data = $json->encode( chr 0x10402 );
$data =~ s/\n$//s;
is( $data, '"\ud801\udc02"' );
}
like( $json->encode( chr 0x10402 ), qr/"\\ud801\\udc02"\n?/ );
ok( $json = JSON::Any->new( allow_nonref => 1, utf8 => 1 ) );

is( $json->encode("ü"), qq["\xc3\xbc\"] );
Expand Down

0 comments on commit 76e4048

Please sign in to comment.