diff options
Diffstat (limited to 't')
-rw-r--r-- | t/block-helper-builtins.t | 2 | ||||
-rw-r--r-- | t/expressions.t | 16 |
2 files changed, 16 insertions, 2 deletions
diff --git a/t/block-helper-builtins.t b/t/block-helper-builtins.t index 338e067..9540b27 100644 --- a/t/block-helper-builtins.t +++ b/t/block-helper-builtins.t @@ -32,7 +32,6 @@ RENDERED "with helper" ); -{ local $TODO = "unimplemented"; local $SIG{__WARN__} = sub { }; render_ok( <<'TEMPLATE', <ul class="people_list"> @@ -57,7 +56,6 @@ TEMPLATE RENDERED "each helper" ); -} render_ok( <<'TEMPLATE', diff --git a/t/expressions.t b/t/expressions.t index 08d0894..f12022c 100644 --- a/t/expressions.t +++ b/t/expressions.t @@ -87,4 +87,20 @@ render_ok( ); } +render_ok( + '{{.}} {{this}}', + "foo", + "foo foo", + "top level current context" +); + +render_ok( + '{{#thing}}{{.}} {{this}}{{/thing}}', + { + thing => [ "foo" ], + }, + "foo foo", + "nested current context" +); + done_testing; |