diff options
Diffstat (limited to 't')
-rw-r--r-- | t/lambdas.t | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/t/lambdas.t b/t/lambdas.t new file mode 100644 index 0000000..bdad45b --- /dev/null +++ b/t/lambdas.t @@ -0,0 +1,15 @@ +#!/usr/bin/env perl +use strict; +use warnings; +use lib 't/lib'; +use Test::More; +use Test::Handlebars; + +render_ok( + '{{foo.bar.baz}} / {{{foo.bar.baz}}}', + { foo => { bar => { baz => sub { '<BAZ>' } } } }, + '<BAZ> / <BAZ>', + "lambdas with field access" +); + +done_testing; |