Skip to content

Commit

Permalink
fixed consistency test
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 18, 2012
1 parent fba2b4a commit e578f6e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions t/mojo/template.t
Expand Up @@ -28,11 +28,9 @@ use FindBin;
use_ok 'Mojo::Template';

# Consistent scalar context
my $mt = Mojo::Template->new;
my $output =
$mt->render('<%= localtime 784111777 %>:<%== localtime 784111777 %>');
is $output, "Sun Nov 6 09:49:37 1994:Sun Nov 6 09:49:37 1994\n",
'same context';
my $mt = Mojo::Template->new;
my $output = $mt->render('<%= split /,/, "a,b" %>:<%== split /,/, "a,b" %>');
is $output, "2:2\n", 'same context';

# Trim tag
$mt = Mojo::Template->new;
Expand Down

0 comments on commit e578f6e

Please sign in to comment.