use Test::More qw(no_plan); use App::RecordStream::Test::OperationHelper; use strict; use warnings; BEGIN { use_ok( 'App::RecordStream::Operation::decollate' ) }; # test split and some general decollate stuff { my $stream = <do_match( 'decollate', ['-d', 'split,from,_,to'], $stream, $solution, ); } # test double split { my $stream = <do_match( 'decollate', ['-d', 'split,first,/,second'], $stream, $solution1, ); my $solution2 = <do_match( 'decollate', ['-d', 'split,first,/,second', '-d', 'split,second,_,third'], $stream, $solution2, ); } # test unhash { my $stream = <do_match( 'decollate', ['-d', 'unhash,hr,k,v'], $stream, $solution, ); App::RecordStream::Test::OperationHelper->do_match( 'decollate', ['-d', 'unhash,hr,k'], $stream, $solution_k, ); } # test unarray { my $stream = <do_match( 'decollate', ['-d', 'unarray,ar,v'], $stream, $solution, ); }