From 4fcaa4d31eb830aa648ffb8e4a67f5715701b21d Mon Sep 17 00:00:00 2001 From: Paul Poulain Date: Fri, 6 Jul 2012 17:00:48 +0200 Subject: [PATCH] Revert "Added coverage to unit test for TTParser" This reverts commit 628788ad8a68ea843f37bfa63dd4854b50affd26. --- C4/TTParser.pm | 1 + xt/tt_valid.t | 6 +----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/C4/TTParser.pm b/C4/TTParser.pm index 87ad744a65..5058069e85 100644 --- a/C4/TTParser.pm +++ b/C4/TTParser.pm @@ -40,6 +40,7 @@ sub next_token{ #unshift token back on @tokens sub unshift_token{ + my $self = shift; unshift @tokens, shift; } diff --git a/xt/tt_valid.t b/xt/tt_valid.t index 97725ee370..ae2e2e5581 100755 --- a/xt/tt_valid.t +++ b/xt/tt_valid.t @@ -19,7 +19,7 @@ use warnings; use strict; -use Test::More tests => 2; +use Test::More tests => 1; use File::Find; use Cwd; use C4::TTParser; @@ -56,10 +56,6 @@ ok( !@files_with_directive_in_tag, "TT syntax: not using TT directive within HTM } @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 -- 2.20.1