Skip to content

Commit

Permalink
better content test
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 16, 2013
1 parent 916a5f9 commit 935a306
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions t/mojo/content.t
Expand Up @@ -77,9 +77,10 @@ ok !$content->charset, 'no charset';
'a' =~ /(.)/;
ok !$content->boundary, 'no boundary';

# Partial content with 64bit content length
# Partial content with 128bit content length
$content = Mojo::Content::Single->new;
$content->parse("Content-Length: 9999999999\x0d\x0a\x0d\x0aHello World!");
$content->parse(
"Content-Length: 18446744073709551616\x0d\x0a\x0d\x0aHello World!");
is $content->asset->size, 12, 'right size';

done_testing();

0 comments on commit 935a306

Please sign in to comment.