# test the docs in TT.pm
use Test::More tests => 2;
use Inline TT => 'DATA';
my $hello_out = hello( { name => 'Rob' } );
is( $hello_out, '
Hello Rob, how are you?
', 'call of hello' );
my $bye_out = goodbye( { name => 'Mr. Mitchell' } );
is( $bye_out,
' Goodbye Mr. Mitchell, have a nice day.
',
'call of bye' );
__DATA__
__TT__
[% BLOCK hello %]
Hello [% name %], how are you?
[% END %]
[% BLOCK goodbye %]
Goodbye [% name %], have a nice day.
[% END %]