Skip to content

Commit

Permalink
more JSON Pointer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jul 2, 2012
1 parent f44a48d commit 1a8e022
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion t/mojo/json_pointer.t
Expand Up @@ -2,7 +2,7 @@ use Mojo::Base -strict;

use utf8;

use Test::More tests => 24;
use Test::More tests => 25;

# "I've had it with this school, Skinner.
# Low test scores, class after class of ugly, ugly children..."
Expand Down Expand Up @@ -51,6 +51,8 @@ is $p->get([{'foo/bar' => 'bar'}], '/0/foo%2Fbar'), undef,
'"/0/foo%2Fbar" is "undef"';
is $p->get([{'foo/bar' => 'bar'}], '/0/foo~1bar'), 'bar',
'"/0/foo~1bar" is "bar"';
is $p->get([{'foo/bar/baz' => 'yada'}], '/0/foo~1bar~1baz'), 'yada',
'"/0/foo~1bar~1baz" is "yada"';
is $p->get([{'foo~/bar' => 'bar'}], '/0/foo~0~1bar'), 'bar',
'"/0/foo~0~1bar" is "bar"';
is $p->get(
Expand Down

0 comments on commit 1a8e022

Please sign in to comment.