⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 utils.t

📁 source of perl for linux application,
💻 T
字号:
# Test hyperlinks et al from Pod::ParseUtilsBEGIN {        chdir 't' if -d 't';        @INC = '../lib';        require Test; import Test;        plan(tests => 22);}use strict;use Pod::ParseUtils;# First test the hyperlinksmy @links = qw{  name  name/ident  name/"sec"  "sec"  /"sec"  http://www.perl.org/  text|name  text|name/ident  text|name/"sec"  text|"sec"};my @results = (	       "P<name>",	       "Q<ident> in P<name>",	       "Q<sec> in P<name>",	       "Q<sec>",	       "Q<sec>",	       "Q<http://www.perl.org/>",	       "Q<text>",	       "Q<text>",	       "Q<text>",	       "Q<text>",	      );ok(@results,@links);for my $i( 0..@links ) {  my $link = new Pod::Hyperlink( $links[$i] );  ok($link->markup, $results[$i]);}# Now test lists# This test needs to be bettermy $list = new Pod::List( -indent => 4,			  -start  => 52,			  -file   => "itemtest.t",			  -type   => "OL",			);ok($list);ok($list->indent, 4);ok($list->start, 52);ok($list->type, "OL");# Pod::Cache# also needs workmy $cache = new Pod::Cache;# Store it in the cache$cache->item(	     -page => "Pod::ParseUtils",	     -description => "A description",	     -file => "file.t", );# Now look for an item of this namemy $item = $cache->find_page("Pod::ParseUtils");ok($item);# and a failureok($cache->find_page("Junk"), undef);# Make sure that the item we found is the same one as the# first in the listmy @i = $cache->item;ok($i[0], $item);# Check the contentsok($item->page, "Pod::ParseUtils");ok($item->description, "A description");ok($item->file, "file.t");

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -