Skip to content

Commit

Permalink
a few more tests for Mojo::JSON::Pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Apr 3, 2013
1 parent 1c4f800 commit 46af5c6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions t/mojo/json_pointer.t
Expand Up @@ -51,6 +51,11 @@ is $pointer->get(
[{'f~o~o~/b~' => {'a~' => {'r' => 'baz'}}}] => '/0/f~0o~0o~0~1b~0/a~0/r'),
'baz', '"/0/f~0o~0o~0~1b~0/a~0/r" is "baz"';

# Unicode
is $pointer->get({'' => 'snowman'}, '/☃'), 'snowman', 'found the snowman';
is $pointer->get({'' => ['snowman']}, '/☃/0'), 'snowman',
'found the snowman';

# RFC 6901
my $hash = {
foo => ['bar', 'baz'],
Expand Down

0 comments on commit 46af5c6

Please sign in to comment.