From 7d11e61bf5f4bee890d55184089493d185e82974 Mon Sep 17 00:00:00 2001 From: Andrew Martin Date: Tue, 6 Oct 2015 08:45:00 -0400 Subject: Add List context check --- specs/sections.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/specs/sections.yml b/specs/sections.yml index d204bea..2d1e982 100644 --- a/specs/sections.yml +++ b/specs/sections.yml @@ -68,6 +68,21 @@ tests: template: '"{{#foo}} {{.}} is {{foo}} {{/foo}}"' expected: '"bar is bar"' + - name: List Contexts + desc: All elements on the context stack should be accessible within lists. + data: + tops: + - tname: + upper: "A" + lower: "a" + middles: + - mname: "1" + bottoms: + - bname: "x" + - bname: "y" + template: '{{#tops}}{{#middles}}{{tname.lower}}{{mname}}.{{#bottoms}}{{tname.upper}}{{mname}}{{bname}}.{{/bottoms}}{{/middles}}{{/tops}}' + expected: 'a1.A1x.A1y.' + - name: Deeply Nested Contexts desc: All elements on the context stack should be accessible. data: -- cgit v1.2.1