use Test::More qw(no_plan); use App::RecordStream::Test::OperationHelper; BEGIN { use_ok( 'App::RecordStream::Operation::tohtml' ) }; my $stream = < foo zoo 1 biz1 2 biz2 3 biz3 4 biz4 5 biz5 SOLUTION App::RecordStream::Test::OperationHelper->test_output( 'tohtml', [], $stream, $solution, ); # KeyGroup test App::RecordStream::Test::OperationHelper->test_output( 'tohtml', ['--key', '!.!sort'], $stream, $solution, ); my $solution2 = < foo 1 2 3 4 5 SOLUTION App::RecordStream::Test::OperationHelper->test_output( 'tohtml', [qw(--fields foo)], $stream, $solution2, ); my $solution3 = < 1 biz1 2 biz2 3 biz3 4 biz4 5 biz5 SOLUTION App::RecordStream::Test::OperationHelper->test_output( 'tohtml', [qw(--noheader)], $stream, $solution3, ); my $solution4 = < foo zoo 1 biz1 2 biz2 3 biz3 4 biz4 5 biz5 SOLUTION App::RecordStream::Test::OperationHelper->test_output( 'tohtml', [qw(--row bar=zap --cell biz=bam)], $stream, $solution4, );