5 use lib qw
't perl/t ..';
9 filter
=>[qw
'major minor subminor patchlevel'],
11 version
=> sub{'"'.$_[1].'"'}
16 plan
( tests
=> scalar keys %test );
22 subminor_ver
=> 'subminor',
23 patchlevel_ver
=> 'patchlevel'
26 for my $test ( sort keys %test ){
27 my $expected = $test{$test};
28 my $returned = `echo $test | perl version.pl nsis`;
31 while( $returned =~ m
{
33 !define \s
+ (\w
+) \s
+ (.*?
)\n
39 for my $key ( keys %map ){
40 if( defined $got{$key} ){
41 my $value = $map{$key};
42 $got{$value} = $got{$key} if defined $value;
47 is_deeply
(\
%got,$expected,$test);
50 !define VERSION
"2.06rc10"
53 !define SUBMINOR_VER
99
54 !define PATCHLEVEL_VER
100