Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
even more xor_encode tests
  • Loading branch information
kraih committed Sep 6, 2012
1 parent 0569ace commit 94e35d1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

3.38 2012-09-05
3.38 2012-09-06
- Added xor_encode method to Mojo::ByteStream.
- Added xor_encode function to Mojo::Util.
- Improved documentation.
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious.pm
Expand Up @@ -820,7 +820,7 @@ Kazuhiro Shibuya
Kevin Old
KITAMURA Akatsuki
Kitamura Akatsuki
Lars Balker Rasmussen
Expand Down
4 changes: 3 additions & 1 deletion t/mojo/util.t
Expand Up @@ -2,7 +2,7 @@ use Mojo::Base -strict;

use utf8;

use Test::More tests => 152;
use Test::More tests => 154;

use File::Spec::Functions qw(catfile splitdir);
use File::Temp 'tempdir';
Expand Down Expand Up @@ -373,6 +373,8 @@ is xor_encode('hello world', 'x'),
"\x10\x1d\x14\x14\x17\x58\x0f\x17\x0a\x14\x1c", 'right result';
is xor_encode("\x10\x1d\x14\x14\x17\x58\x0f\x17\x0a\x14\x1c", 'x'),
'hello world', 'right result';
is xor_encode('hello', '123456789'), "\x59\x57\x5f\x58\x5a", 'right result';
is xor_encode("\x59\x57\x5f\x58\x5a", '123456789'), 'hello', 'right result';

# slurp
is slurp(catfile(splitdir($FindBin::Bin), qw(templates exception.mt))),
Expand Down

0 comments on commit 94e35d1

Please sign in to comment.