Skip to content

Commit

Permalink
more interesting Mojo::Template tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 28, 2015
1 parent 3cf6e48 commit ec40a50
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

6.01 2015-02-27
6.01 2015-02-28

6.0 2015-02-26
- Code name "Clinking Beer Mugs", this is a major release.
Expand Down
12 changes: 6 additions & 6 deletions t/mojo/template.t
Expand Up @@ -42,8 +42,8 @@ is $output, ' ♥test♥', 'tag trimmed';

# Trim expression
$mt = Mojo::Template->new;
$output = $mt->render("<%= '123' %><%= 'test' =%>\n");
is $output, '123test', 'expression trimmed';
$output = $mt->render("<%= '123' %><%= 'begin#test' =%>\n");
is $output, '123begin#test', 'expression trimmed';

# Trim expression (multiple lines)
$mt = Mojo::Template->new;
Expand Down Expand Up @@ -842,14 +842,14 @@ $mt = Mojo::Template->new;
$mt->auto_escape(1);
$output = $mt->render(<<'EOF');
<html><%= '<html>' %>
%= '&lt;'
%== '&lt;'
%= 'begin#&lt;'
%== 'begin#&lt;'
</html>
EOF
is $output, <<EOF, 'XML auto escape';
<html>&lt;html&gt;
&amp;lt;
&lt;
begin#&amp;lt;
begin#&lt;
</html>
EOF

Expand Down

0 comments on commit ec40a50

Please sign in to comment.