1
use Test::More 'no_plan';
7
my $sv = $q->multipart_init;
8
like( $sv, qr|Content-Type: multipart/x-mixed-replace;boundary="------- =|, 'multipart_init(), basic');
10
like( $sv, qr/$CGI::CRLF$/, 'multipart_init(), ends in CRLF' );
12
$sv = $q->multipart_init( 'this_is_the_boundary' );
13
like( $sv, qr/boundary="this_is_the_boundary"/, 'multipart_init("simple_boundary")' );
14
$sv = $q->multipart_init( -boundary => 'this_is_another_boundary' );
16
qr/boundary="this_is_another_boundary"/, "multipart_init( -boundary => 'this_is_another_boundary')");
18
$sv = $q->multipart_init;
19
my $sv2 = $q->multipart_init;
20
isnt($sv,$sv2,"due to random boundaries, multiple calls produce different results");