use Test::More qw(no_plan); use App::RecordStream::Test::Tester; BEGIN { use_ok( 'App::RecordStream::Operation::frommultire' ) }; my $input; my $output; my $tester = App::RecordStream::Test::Tester->new('frommultire'); $input = <test_input(['--re', 'fname,lname=^Name: (.*) (.*)$'], $input, $output); $input2 = <test_input(['--re', '$1=(.*): (.*)'], $input2, $output); $input2 = <test_input(['--re', '$1,$2=(.*),(.*)=(.*),(.*) ([A-Z]*)'], $input2, $output); $output = <test_input(['--re', 'team=^Team: (.*)$', '--re', 'loc=^Location: (.*)$', '--post', 'fname,lname=^Name: (.*) (.*)$', '--clobber', '--keep-all'], $input, $output); $output = <test_input(['--re', 'team=^Team: (.*)$', '--re', 'loc=^Location: (.*)$', '--post', 'fname,lname=^Name: (.*) (.*)$', '--clobber', '--keep', 'team'], $input, $output); $input = <test_input(['--re', 'a1=^A:([^ ]*) ([^ ]*)$', '--re', '^B:([^ ]*) ([^ ]*) ([^ ]*)$'], $input, $output);