#!perl use strict; use warnings; use Test::More; use HTML::Packer; if (! eval "use Test::Memory::Cycle; 1;" ) { plan skip_all => 'Test::Memory::Cycle required for this test'; } my $packer = HTML::Packer->init; memory_cycle_ok( $packer ); my $row = q@ Me me @; for ( 1 .. 5 ) { my %opts = ( remove_newlines => "true", remove_comments => 'true', do_javascript => 'best', do_stylesheet => 'minify' ); ok( $packer->minify( \$row,\%opts ),'minify' ); } memory_cycle_ok( $packer ); done_testing();