Skip to content

Commit

Permalink
more coverage yet
Browse files Browse the repository at this point in the history
  • Loading branch information
FGasper committed Apr 13, 2021
1 parent 6d98b56 commit 67c88ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/leading_zero.t
Expand Up @@ -24,14 +24,14 @@ END
}

$doc = <<END;
badbad = [ { "/fo~/é" = 00000 } ]
badbad = [ { "/fo~/é" = [00000] } ]
END

{
eval { TOML::XS::from_toml($doc)->to_struct() };
my $err = $@;
diag $err;
like( $err, qr</badbad/0/~1fo~0~1\x{e9}>, 'error indicates deep, escaped, decoded JSON pointer' );
like( $err, qr</badbad/0/~1fo~0~1\x{e9}/0>, 'error indicates deep, escaped, decoded JSON pointer' );
}

done_testing;

0 comments on commit 67c88ce

Please sign in to comment.