亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? globmapper.t

?? source of perl for linux application,
?? T
字號:
BEGIN {    if ($ENV{PERL_CORE}) {	chdir 't' if -d 't';	@INC = ("../lib", "lib/compress");    }}use lib qw(t t/compress);use strict ;use warnings ;use Test::More ;use CompTestUtils;BEGIN {     plan(skip_all => "File::GlobMapper needs Perl 5.005 or better - you havePerl $]" )        if $] < 5.005 ;    # use Test::NoWarnings, if available    my $extra = 0 ;    $extra = 1        if eval { require Test::NoWarnings ;  import Test::NoWarnings; 1 };    plan tests => 68 + $extra ;    use_ok('File::GlobMapper') ; }{    title "Error Cases" ;    my $gm;    for my $delim ( qw/ ( ) { } [ ] / )    {        $gm = new File::GlobMapper("${delim}abc", '*.X');        ok ! $gm, "  new failed" ;        is $File::GlobMapper::Error, "Unmatched $delim in input fileglob",             "  catch unmatched $delim";    }    for my $delim ( qw/ ( ) [ ] / )    {        $gm = new File::GlobMapper("{${delim}abc}", '*.X');        ok ! $gm, "  new failed" ;        is $File::GlobMapper::Error, "Unmatched $delim in input fileglob",             "  catch unmatched $delim inside {}";    }    }{    title "input glob matches zero files";    my $tmpDir = 'td';    my $lex = new LexDir $tmpDir;    my $gm = new File::GlobMapper("$tmpDir/Z*", '*.X');    ok $gm, "  created GlobMapper object" ;    my $map = $gm->getFileMap() ;    is @{ $map }, 0, "  returned 0 maps";    is_deeply $map, [], " zero maps" ;    my $hash = $gm->getHash() ;    is_deeply $hash, {}, "  zero maps" ;}{    title 'test wildcard mapping of * in destination';    my $tmpDir = 'td';    my $lex = new LexDir $tmpDir;    mkdir $tmpDir, 0777 ;    touch map { "$tmpDir/$_.tmp" } qw( abc1 abc2 abc3 ) ;    my $gm = new File::GlobMapper("$tmpDir/ab*.tmp", "*X");    ok $gm, "  created GlobMapper object" ;    my $map = $gm->getFileMap() ;    is @{ $map }, 3, "  returned 3 maps";    is_deeply $map,        [ [map { "$tmpDir/$_" } qw(abc1.tmp abc1.tmpX)],          [map { "$tmpDir/$_" } qw(abc2.tmp abc2.tmpX)],          [map { "$tmpDir/$_" } qw(abc3.tmp abc3.tmpX)],        ], "  got mapping";    my $hash = $gm->getHash() ;    is_deeply $hash,        { map { "$tmpDir/$_" } qw(abc1.tmp abc1.tmpX                                  abc2.tmp abc2.tmpX                                  abc3.tmp abc3.tmpX),        }, "  got mapping";}{    title 'no wildcards in input or destination';    my $tmpDir = 'td';    my $lex = new LexDir $tmpDir;    mkdir $tmpDir, 0777 ;    touch map { "$tmpDir/$_.tmp" } qw( abc1 abc2 abc3 ) ;    my $gm = new File::GlobMapper("$tmpDir/abc2.tmp", "$tmpDir/abc2.tmp");    ok $gm, "  created GlobMapper object" ;    my $map = $gm->getFileMap() ;    is @{ $map }, 1, "  returned 1 maps";    is_deeply $map,        [ [map { "$tmpDir/$_.tmp" } qw(abc2 abc2)],        ], "  got mapping";    my $hash = $gm->getHash() ;    is_deeply $hash,        { map { "$tmpDir/$_.tmp" } qw(abc2 abc2),        }, "  got mapping";}{    title 'test wildcard mapping of {} in destination';    my $tmpDir = 'td';    my $lex = new LexDir $tmpDir;    mkdir $tmpDir, 0777 ;    touch map { "$tmpDir/$_.tmp" } qw( abc1 abc2 abc3 ) ;    my $gm = new File::GlobMapper("$tmpDir/abc{1,3}.tmp", "*.X");    #diag "Input pattern is $gm->{InputPattern}";    ok $gm, "  created GlobMapper object" ;    my $map = $gm->getFileMap() ;    is @{ $map }, 2, "  returned 2 maps";    is_deeply $map,        [ [map { "$tmpDir/$_" } qw(abc1.tmp abc1.tmp.X)],          [map { "$tmpDir/$_" } qw(abc3.tmp abc3.tmp.X)],        ], "  got mapping";    $gm = new File::GlobMapper("$tmpDir/abc{1,3}.tmp", "$tmpDir/X.#1.X")        or diag $File::GlobMapper::Error ;    #diag "Input pattern is $gm->{InputPattern}";    ok $gm, "  created GlobMapper object" ;    $map = $gm->getFileMap() ;    is @{ $map }, 2, "  returned 2 maps";    is_deeply $map,        [ [map { "$tmpDir/$_" } qw(abc1.tmp X.1.X)],          [map { "$tmpDir/$_" } qw(abc3.tmp X.3.X)],        ], "  got mapping";}{    title 'test wildcard mapping of multiple * to #';    my $tmpDir = 'td';    my $lex = new LexDir $tmpDir;    mkdir $tmpDir, 0777 ;    touch map { "$tmpDir/$_.tmp" } qw( abc1 abc2 abc3 ) ;    my $gm = new File::GlobMapper("$tmpDir/*b(*).tmp", "$tmpDir/X-#2-#1-X");    ok $gm, "  created GlobMapper object"         or diag $File::GlobMapper::Error ;    my $map = $gm->getFileMap() ;    is @{ $map }, 3, "  returned 3 maps";    is_deeply $map,        [ [map { "$tmpDir/$_" } qw(abc1.tmp X-c1-a-X)],          [map { "$tmpDir/$_" } qw(abc2.tmp X-c2-a-X)],          [map { "$tmpDir/$_" } qw(abc3.tmp X-c3-a-X)],        ], "  got mapping";}{    title 'test wildcard mapping of multiple ? to #';    my $tmpDir = 'td';    my $lex = new LexDir $tmpDir;    mkdir $tmpDir, 0777 ;    touch map { "$tmpDir/$_.tmp" } qw( abc1 abc2 abc3 ) ;    my $gm = new File::GlobMapper("$tmpDir/?b(*).tmp", "$tmpDir/X-#2-#1-X");    ok $gm, "  created GlobMapper object" ;    my $map = $gm->getFileMap() ;    is @{ $map }, 3, "  returned 3 maps";    is_deeply $map,        [ [map { "$tmpDir/$_" } qw(abc1.tmp X-c1-a-X)],          [map { "$tmpDir/$_" } qw(abc2.tmp X-c2-a-X)],          [map { "$tmpDir/$_" } qw(abc3.tmp X-c3-a-X)],        ], "  got mapping";}{    title 'test wildcard mapping of multiple ?,* and [] to #';    my $tmpDir = 'td';    my $lex = new LexDir $tmpDir;    mkdir $tmpDir, 0777 ;    touch map { "$tmpDir/$_.tmp" } qw( abc1 abc2 abc3 ) ;    my $gm = new File::GlobMapper("./$tmpDir/?b[a-z]*.tmp", "./$tmpDir/X-#3-#2-#1-X");    ok $gm, "  created GlobMapper object" ;    #diag "Input pattern is $gm->{InputPattern}";    my $map = $gm->getFileMap() ;    is @{ $map }, 3, "  returned 3 maps";    is_deeply $map,        [ [map { "./$tmpDir/$_" } qw(abc1.tmp X-1-c-a-X)],          [map { "./$tmpDir/$_" } qw(abc2.tmp X-2-c-a-X)],          [map { "./$tmpDir/$_" } qw(abc3.tmp X-3-c-a-X)],        ], "  got mapping";}{    title 'input glob matches a file multiple times';    my $tmpDir = 'td';    my $lex = new LexDir $tmpDir;    mkdir $tmpDir, 0777 ;    touch "$tmpDir/abc.tmp";    my $gm = new File::GlobMapper("$tmpDir/{a*,*c}.tmp", '*.X');    ok $gm, "  created GlobMapper object" ;    my $map = $gm->getFileMap() ;    is @{ $map }, 1, "  returned 1 maps";    is_deeply $map,        [ [map { "$tmpDir/$_" } qw(abc.tmp abc.tmp.X)], ], "  got mapping";    my $hash = $gm->getHash() ;    is_deeply $hash,        { map { "$tmpDir/$_" } qw(abc.tmp abc.tmp.X) }, "  got mapping";}{    title 'multiple input files map to one output file';    my $tmpDir = 'td';    my $lex = new LexDir $tmpDir;    mkdir $tmpDir, 0777 ;    touch map { "$tmpDir/$_.tmp" } qw( abc def) ;    my $gm = new File::GlobMapper("$tmpDir/*.tmp", "$tmpDir/fred");    ok ! $gm, "  did not create GlobMapper object" ;    is $File::GlobMapper::Error, 'multiple input files map to one output file', "  Error is expected" ;    #my $map = $gm->getFileMap() ;    #is @{ $map }, 1, "  returned 1 maps";    #is_deeply $map,    #[ [map { "$tmpDir/$_" } qw(abc1 abc.X)], ], "  got mapping";}{    title "globmap" ;    my $tmpDir = 'td';    my $lex = new LexDir $tmpDir;    mkdir $tmpDir, 0777 ;    touch map { "$tmpDir/$_.tmp" } qw( abc1 abc2 abc3 ) ;    my $map = File::GlobMapper::globmap("$tmpDir/*b*.tmp", "$tmpDir/X-#2-#1-X");    ok $map, "  got map"         or diag $File::GlobMapper::Error ;    is @{ $map }, 3, "  returned 3 maps";    is_deeply $map,        [ [map { "$tmpDir/$_" } qw(abc1.tmp X-c1-a-X)],          [map { "$tmpDir/$_" } qw(abc2.tmp X-c2-a-X)],          [map { "$tmpDir/$_" } qw(abc3.tmp X-c3-a-X)],        ], "  got mapping";}# TODO# test each of the wildcard metacharacters can be mapped to the output filename##   ~ [] {} . *# input & output glob with no wildcards is ok# input with no wild or output with no wild is bad# input wild has concatenated *'s# empty string for either both from & to# escaped chars within [] and {}, including the chars []{}# escaped , within {}# missing ] and missing }# {} and {,} are special cases# {ab*,de*}# {abc,{},{de,f}} => abc {} de f

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美精品久久99久久在免费线 | 成人亚洲精品久久久久软件| 欧美日韩精品一区视频| 一区二区三区在线观看视频 | 免费亚洲电影在线| 日韩精品一区二区三区swag| 麻豆精品一区二区| 中文字幕精品综合| 91.麻豆视频| 国产一区二区美女| 一区二区三区中文在线观看| 欧美一卡2卡三卡4卡5免费| 不卡区在线中文字幕| 久久精品国产在热久久| 亚洲自拍偷拍网站| 中文av一区特黄| 91精品综合久久久久久| 色综合久久精品| 成人a免费在线看| 国产一区二区女| 日本不卡视频一二三区| 亚洲精品乱码久久久久久黑人| 欧美日韩国产精品自在自线| 国产一区二区剧情av在线| 亚洲一区二区三区在线看| 亚洲精品在线观看网站| 欧美日韩日本视频| 在线精品视频免费播放| 国产91精品一区二区麻豆网站| 偷拍亚洲欧洲综合| 日韩二区在线观看| 久久精品国产一区二区三区免费看| 亚洲精品国产高清久久伦理二区| 国产日韩亚洲欧美综合| 久久久久久久久久久99999| 欧美韩国日本综合| 18成人在线视频| 一区二区高清免费观看影视大全| 亚洲精品国产品国语在线app| 亚洲精品视频在线观看网站| 亚洲一区二区三区中文字幕| 亚洲国产美女搞黄色| 日本 国产 欧美色综合| 国产精品资源在线观看| 91麻豆视频网站| 欧美成人r级一区二区三区| 国产精品天美传媒沈樵| 亚洲欧美色图小说| 老司机精品视频一区二区三区| 久久国产尿小便嘘嘘| 国产自产高清不卡| 欧美性色欧美a在线播放| 91.com在线观看| 亚洲私人黄色宅男| 奇米777欧美一区二区| 成人a区在线观看| 欧美电影免费提供在线观看| 久久综合色一综合色88| 亚洲一区在线观看网站| 国产91精品精华液一区二区三区 | 亚洲人成在线观看一区二区| 一区二区三区四区乱视频| 蜜桃视频免费观看一区| 色爱区综合激月婷婷| 亚洲精品一区在线观看| 午夜国产精品影院在线观看| 国产.欧美.日韩| 欧美精品乱码久久久久久| 亚洲激情中文1区| 91偷拍与自偷拍精品| 久久精品一二三| 国产毛片精品国产一区二区三区| 欧美日韩高清不卡| 婷婷丁香激情综合| 精品蜜桃在线看| 国产精品主播直播| 日韩伦理av电影| 91福利视频网站| 青青草97国产精品免费观看无弹窗版| 69久久99精品久久久久婷婷| 免费久久99精品国产| 国产亚洲精品7777| 在线欧美一区二区| 91首页免费视频| 国产久卡久卡久卡久卡视频精品| 国产欧美精品一区二区色综合| 日本高清不卡视频| 国产精品自在欧美一区| 亚洲精品亚洲人成人网在线播放| 精品国产一区二区三区av性色| 在线一区二区三区| 国产成人在线免费| 麻豆91免费看| 午夜精品久久久久久久 | 91精品蜜臀在线一区尤物| 国产高清无密码一区二区三区| 亚洲同性gay激情无套| 久久精品无码一区二区三区| 欧美日韩精品电影| 欧美色图免费看| 91天堂素人约啪| 成人夜色视频网站在线观看| 国产成人在线看| 国产在线国偷精品产拍免费yy| 水野朝阳av一区二区三区| 亚洲一区免费观看| 青青草国产成人av片免费| 一区二区三区日韩在线观看| 国产精品传媒视频| 亚洲色图.com| 亚洲精品水蜜桃| 中文字幕一区二区三区四区| 国产色爱av资源综合区| 国产精品美日韩| 亚洲一区中文日韩| 日本不卡视频在线| 成人精品国产福利| 在线观看一区不卡| 欧美群妇大交群的观看方式| 91精品黄色片免费大全| 久久色成人在线| 亚洲三级在线观看| 麻豆传媒一区二区三区| 99久久99久久精品免费看蜜桃| 91蜜桃在线免费视频| 欧美日韩精品一二三区| 538prom精品视频线放| 中文字幕久久午夜不卡| 午夜欧美电影在线观看| 国产精品资源站在线| 久久综合色一综合色88| 青青草精品视频| 91网页版在线| 久久久久久久久久久久电影| 亚洲免费观看视频| 成人av免费观看| 精品国产人成亚洲区| 天堂成人国产精品一区| 99精品热视频| 国产精品免费视频网站| 另类人妖一区二区av| 欧美色图一区二区三区| 综合久久久久久| www.色精品| 日本一区二区电影| 国产在线精品不卡| 日韩欧美高清dvd碟片| 亚洲第一激情av| 欧美偷拍一区二区| 亚洲午夜久久久久久久久电影院| 国产九九视频一区二区三区| 精品日韩在线一区| 精品一区二区三区在线播放视频| 精品日韩成人av| 国产成人h网站| 中文字幕av资源一区| 国产超碰在线一区| 亚洲三级在线看| 欧美日本国产视频| 国产精品一区专区| 亚洲一区在线视频| 久久网站热最新地址| 国产成人午夜99999| 亚洲欧洲国产日韩| 欧美日韩在线精品一区二区三区激情| 亚洲精选视频在线| 欧美一区二区三区免费在线看 | 日韩欧美视频在线| 国模冰冰炮一区二区| 国产精品美女久久福利网站| 欧美三级日韩三级| 国产成人在线看| 亚洲国产一区二区三区青草影视| 777精品伊人久久久久大香线蕉| 国产九色精品成人porny| 日韩高清欧美激情| 亚洲欧美怡红院| 久久久美女毛片| 亚洲精品在线观看视频| www.日韩av| 成人精品在线视频观看| 福利电影一区二区三区| 国产激情视频一区二区三区欧美 | 粉嫩aⅴ一区二区三区四区 | 91国在线观看| 欧美美女一区二区| 精品日产卡一卡二卡麻豆| 日韩欧美在线一区二区三区| 精品国产伦理网| 国产日韩欧美精品在线| 日韩电影一二三区| 91在线码无精品| 成人深夜在线观看| 欧美三级电影网站| 免费高清成人在线| 日本在线不卡一区| 一区二区三区视频在线看| 免费在线观看成人| 欧美亚洲动漫制服丝袜| 中文字幕 久热精品 视频在线|