Skip to content

Commit

Permalink
test double slash too
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 13, 2015
1 parent 9d05a4c commit 9e6fe1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Changes
Expand Up @@ -3,7 +3,7 @@
- Improved session security by not storing secrets in the stash and making
CSRF tokens much harder to guess.
- Improved commands to show all options that can affect their behavior.
- Fixed bug in Mojo::JSON::Pointer that prevented JSON Pointers with traling
- Fixed bug in Mojo::JSON::Pointer that prevented JSON Pointers with trailing
slash from working correctly. (dolmen)

6.23 2015-10-06
Expand Down
2 changes: 2 additions & 0 deletions t/mojo/json_pointer.t
Expand Up @@ -32,6 +32,8 @@ is $pointer->new({foo => {bar => 42}})->get('/foo/bar'), 42,
is_deeply $pointer->new({foo => {23 => {baz => 0}}})->get('/foo/23'),
{baz => 0}, '"/foo/23" is "{baz => 0}"';
is $pointer->new({foo => {'' => 42}})->get('/foo/'), 42, '"/foo/" is "42"';
is $pointer->new({foo => {'' => {'' => 42}}})->get('/foo//'), 42,
'"/foo//" is "42"';

# "get" (mixed)
is_deeply $pointer->new({foo => {bar => [1, 2, 3]}})->get('/foo/bar'),
Expand Down

0 comments on commit 9e6fe1c

Please sign in to comment.