11mirroredby.t

来自「source of perl for linux application,」· T 代码 · 共 30 行

T
30
字号
#!/usr/bin/perl -wBEGIN {	if ($ENV{PERL_CORE}) {		chdir 't' if -d 't';		unshift @INC, '../lib';	}}use strict;use lib "BUNDLE";use Test::More tests => 6; use_ok( 'CPAN::FirstTime' );can_ok( 'CPAN::Mirrored::By', 'new', 'continent', 'country', 'url' );my $cmb = CPAN::Mirrored::By->new();isa_ok( $cmb, 'CPAN::Mirrored::By' );@$cmb = qw( continent country url );is( $cmb->continent(), 'continent',	'continent() should return continent entry' );is( $cmb->country(), 'country', 'country() should return country entry' );is( $cmb->url(), 'url', 'url() should return url entry' );__END__# Local Variables:# mode: cperl# cperl-indent-level: 2# End:

⌨️ 快捷键说明

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