Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuji, Goro committed Nov 17, 2011
1 parent 2bfd419 commit 1eab524
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions t/900_bugs/020_switch_foo.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!perl
# http://twitter.com/#!/ryochin/status/137041211054768128
use strict;
use Test::More;

use Text::Xslate;

my $tx = Text::Xslate->new(
syntax => 'TTerse',
cache => 0,
);

eval {
$tx->render_string(<<'T');
%% if
T
};
ok $@;

eval {
$tx->render_string(<<'T');
%% switch.foo
T
};
ok $@;

done_testing;

0 comments on commit 1eab524

Please sign in to comment.