Skip to content

Commit

Permalink
a few more Mojo::Path tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Mar 9, 2013
1 parent 478ec43 commit 2271df8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Changes
@@ -1,7 +1,8 @@

3.90 2013-03-08
3.90 2013-03-10
- Improved dumper helper to sort hash keys.
- Improved documentation.
- Improved tests.

3.89 2013-03-04
- Improved documentation.
Expand Down
7 changes: 7 additions & 0 deletions t/mojo/path.t
Expand Up @@ -229,6 +229,13 @@ is "$path", '//', 'right path';
is $path->parts->[0], undef, 'no part';
ok $path->leading_slash, 'has leading slash';
ok $path->trailing_slash, 'has trailing slash';
is "$path", '//', 'right normalized path';
$path = Mojo::Path->new('%2F%2f');
is "$path", '%2F%2f', 'right path';
is $path->parts->[0], undef, 'no part';
ok $path->leading_slash, 'has leading slash';
ok $path->trailing_slash, 'has trailing slash';
is "$path", '//', 'right normalized path';
$path = Mojo::Path->new('/foo//bar/23/');
is "$path", '/foo//bar/23/', 'right path';
is $path->parts->[0], 'foo', 'right part';
Expand Down

0 comments on commit 2271df8

Please sign in to comment.