📄 pulltitl.t
字号:
BEGIN { if($ENV{PERL_CORE}) { chdir 't'; @INC = '../lib'; }}use strict;use Test;BEGIN { plan tests => 104 };#use Pod::Simple::Debug (5);#sub Pod::Simple::MANY_LINES () {1}#sub Pod::Simple::PullParser::DEBUG () {3}use Pod::Simple::PullParser;ok 1;#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~###########################################################################{print "# Testing another set, at line ", __LINE__, "\n";my $p = Pod::Simple::PullParser->new;$p->set_source( \qq{\n=head1 NAME\n\nBzorch\n\n=pod\n\nLala\n\n\=cut\n} );ok $p->get_title(), 'Bzorch';my $t;ok( $t = $p->get_token);ok( $t && $t->type, 'start');ok( $t && $t->type eq 'start' && $t->tagname, 'Document' );ok( $t = $p->get_token);ok( $t && $t->type, 'start');ok( $t && $t->type eq 'start' && $t->tagname, 'head1' );ok( $t = $p->get_token);ok( $t && $t->type, 'text');ok( $t && $t->type eq 'text' && $t->text, 'NAME' );}###########################################################################{print "# Testing another set, at line ", __LINE__, "\n";my $p = Pod::Simple::PullParser->new;$p->set_source( \qq{\n=head1 NE<65>ME\n\nBzorch\n\n=pod\n\nLala\n\n\=cut\n} );ok $p->get_title(), 'Bzorch';my $t;ok( $t = $p->get_token);ok( $t && $t->type, 'start');ok( $t && $t->type eq 'start' && $t->tagname, 'Document' );ok( $t = $p->get_token);ok( $t && $t->type, 'start');ok( $t && $t->type eq 'start' && $t->tagname, 'head1' );ok( $t = $p->get_token);ok( $t && $t->type, 'text');}###########################################################################{print "# Testing another set, at line ", __LINE__, "\n";{my $p = Pod::Simple::PullParser->new;$p->set_source( \qq{\n=head1 NAME\n\nBzorch - I<thing> lala\n\n=pod\n\nLala\n\n\=cut\n} );ok $p->get_title(), 'Bzorch - thing lala';}my $p = Pod::Simple::PullParser->new;$p->set_source( \qq{\n=head1 NAME\n\nBzorch - I<thing> lala\n\n=pod\n\nLala\n\n\=cut\n} );ok $p->get_title(), 'Bzorch - thing lala';my $t;ok( $t = $p->get_token);ok( $t && $t->type, 'start');ok( $t && $t->type eq 'start' && $t->tagname, 'Document' );ok( $t = $p->get_token);ok( $t && $t->type, 'start');ok( $t && $t->type eq 'start' && $t->tagname, 'head1' );ok( $t = $p->get_token);ok( $t && $t->type, 'text');ok( $t && $t->type eq 'text' && $t->text, 'NAME' );}###########################################################################{print "# Testing another set, at line ", __LINE__, "\n";my $p = Pod::Simple::PullParser->new;$p->set_source( \qq{\n=head1 Bzorch lala\n\n=pod\n\nLala\n\n\=cut\n} );ok $p->get_title(), 'Bzorch lala';my $t;ok( $t = $p->get_token);ok( $t && $t->type, 'start');ok( $t && $t->type eq 'start' && $t->tagname, 'Document' );ok( $t = $p->get_token);ok( $t && $t->type, 'start');ok( $t && $t->type eq 'start' && $t->tagname, 'head1' );ok( $t = $p->get_token);ok( $t && $t->type, 'text');ok( $t && $t->type eq 'text' && $t->text, 'Bzorch lala' );}###########################################################################{print "# Testing another set, at line ", __LINE__, "\n";my $p = Pod::Simple::PullParser->new;$p->set_source( \qq{\n=head1 Bzorch - I<thing> lala\n\n=pod\n\nLala\n\n\=cut\n} );ok $p->get_title(), 'Bzorch - thing lala';my $t;ok( $t = $p->get_token);ok( $t && $t->type, 'start');ok( $t && $t->type eq 'start' && $t->tagname, 'Document' );ok( $t = $p->get_token);ok( $t && $t->type, 'start');ok( $t && $t->type eq 'start' && $t->tagname, 'head1' );ok( $t = $p->get_token);ok( $t && $t->type, 'text');ok( $t && $t->type eq 'text' && $t->text, 'Bzorch - ' );}###########################################################################{print "# Testing another set, at line ", __LINE__, "\n";my $p = Pod::Simple::PullParser->new;$p->set_source( \qq{\n=head1 Nombre (NAME)\n\nBzorch - I<thing> lala\n\n=pod\n\nGrunk\n\n\=cut\n} );ok $p->get_version || '', '';ok $p->get_author || '', '';ok $p->get_title(), 'Bzorch - thing lala';my $t;ok( $t = $p->get_token);ok( $t && $t->type, 'start');ok( $t && $t->type eq 'start' && $t->tagname, 'Document' );}###########################################################################{print "# Testing another set, at line ", __LINE__, "\n";my $p = Pod::Simple::PullParser->new;$p->set_source( \qq{\n=head1 胂悄
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -