Merge remote-tracking branch 'origin/new/bug_5327'
This commit is contained in:
commit
6f6bfb8aff
2 changed files with 5 additions and 2 deletions
|
@ -22,7 +22,6 @@ sub next_token{
|
||||||
|
|
||||||
#unshift token back on @tokens
|
#unshift token back on @tokens
|
||||||
sub unshift_token{
|
sub unshift_token{
|
||||||
my $self = shift;
|
|
||||||
unshift @tokens, shift;
|
unshift @tokens, shift;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
use warnings;
|
use warnings;
|
||||||
use strict;
|
use strict;
|
||||||
use Test::More tests => 1;
|
use Test::More tests => 2;
|
||||||
use File::Find;
|
use File::Find;
|
||||||
use Cwd;
|
use Cwd;
|
||||||
use C4::TTParser;
|
use C4::TTParser;
|
||||||
|
@ -56,6 +56,10 @@ ok( !@files_with_directive_in_tag, "TT syntax: not using TT directive within HTM
|
||||||
} @files_with_directive_in_tag )
|
} @files_with_directive_in_tag )
|
||||||
);
|
);
|
||||||
|
|
||||||
|
my $testtoken = 0;
|
||||||
|
C4::TTParser::unshift_token($testtoken);
|
||||||
|
my $testtokenagain = C4::TTParser::next_token();
|
||||||
|
is( $testtoken, $testtokenagain, "Token received same as original put on stack");
|
||||||
|
|
||||||
|
|
||||||
=head1 NAME
|
=head1 NAME
|
||||||
|
|
Loading…
Reference in a new issue