3 # Test for RT Bug 29928 fix
4 # https://rt.cpan.org/Public/Bug/Display.html?id=29928
8 use Test::More tests => 2;
10 use_ok 'Text::Template::Preprocess' or exit 1;
12 my $tin = q{The value of $foo is: {$foo}.};
15 1; # dummy preprocessor to cause the bug described.
18 my $tmpl1 = Text::Template::Preprocess->new(TYPE => 'STRING', SOURCE => $tin);
22 my $t1 = $tmpl1->fill_in(
23 HASH => { foo => 'things' },
24 PREPROCESSOR => \&tester);
26 is $t1, 'The value of $foo is: things.';