From 493283cb9904cbe8ba8a6cea7efe01b494dc65f1 Mon Sep 17 00:00:00 2001 From: Chris Jerdonek Date: Sun, 29 Apr 2012 08:26:44 -0700 Subject: [PATCH] Added a test that elements of a list of lambdas should each have their results parsed. --- specs/~lambdas.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/specs/~lambdas.yml b/specs/~lambdas.yml index eb9387c..41e09cb 100644 --- a/specs/~lambdas.yml +++ b/specs/~lambdas.yml @@ -107,6 +107,18 @@ tests: template: "<{{#lambda}}-{{/lambda}}>" expected: "<-Earth->" + - name: Section - Expansion of List Elements + desc: Lambdas used for sections in a list should each have their results parsed. + data: + planet: "Earth" + lambdas: + - !code + python: 'lambda text: "~{{%s}}~" % text' + - !code + python: 'lambda text: "#{{%s}}#" % text' + template: "<{{#lambdas}}planet{{/lambdas}}>" + expected: "<~Earth~#Earth#>" + - name: Section - Context Stack desc: | Lambdas used for sections should not be pushed onto the context