#!/usr/bin/env perl -w
use
strict;
use
warnings;
ok(
my
$t
= Text::Template::Simple->new(),
'Got the object'
);
my
$template
=
<<'EMPTY';
<%+ t/data/empty.tts -%>
<%* t/data/empty.tts -%>
EMPTY
my
$rv
=
eval
{
$t
->compile(
$template
); };
is( $@, EMPTY_STRING,
'Empty includes (static+dynamic) did not die'
);
is(
$rv
, EMPTY_STRING,
'Empty includes (static+dynamic) returned empty string'
);