Skip to content

Commit

Permalink
more Mojo::ByteStream tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Aug 17, 2013
1 parent 9e4cc39 commit 2f2ab2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Mojo/ByteStream.pm
Expand Up @@ -263,7 +263,8 @@ Write all data from bytestream at once to file with L<Mojo::Util/"spurt">.
my $collection = $stream->split(',');
Turn bytestream into L<Mojo::Collection>.
Turn bytestream into L<Mojo::Collection> object containing L<Mojo::ByteStream>
objects.
b('a,b,c')->split(',')->quote->join(',')->say;
Expand Down
1 change: 1 addition & 0 deletions t/mojo/bytestream.t
Expand Up @@ -108,6 +108,7 @@ is $stream->split('/')->map(sub { $_->quote })->join(', '), '"1", "2", "3"',
'right result';
is $stream->split('/')->map(sub { shift->quote })->join(', '),
'"1", "2", "3"', 'right result';
is $stream->split('/')->quote->join(', '), '"1", "2", "3"', 'right result';

# length
is b('foo bar baz')->size, 11, 'size is 11';
Expand Down

0 comments on commit 2f2ab2e

Please sign in to comment.