summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2014-05-24 16:21:23 +0200
committerKevin Chabowski <kevin@kch42.de>2014-05-24 16:21:44 +0200
commit3b5c779ac5eb70acbb2a5ca56fa0d36ee48d772b (patch)
tree930d4d7ccc70300f31dcd206fc0d1cbf6ba7a28b /tests
parentd48be01fff31a7a9d611802721aa70532d251c3a (diff)
downloadste-3b5c779ac5eb70acbb2a5ca56fa0d36ee48d772b.tar.gz
ste-3b5c779ac5eb70acbb2a5ca56fa0d36ee48d772b.tar.bz2
ste-3b5c779ac5eb70acbb2a5ca56fa0d36ee48d772b.zip
Refined test_closure
Diffstat (limited to 'tests')
-rw-r--r--tests/test_closure/test.tpl10
-rw-r--r--tests/test_closure/want3
2 files changed, 8 insertions, 5 deletions
diff --git a/tests/test_closure/test.tpl b/tests/test_closure/test.tpl
index c13bd5a..c84ed0a 100644
--- a/tests/test_closure/test.tpl
+++ b/tests/test_closure/test.tpl
@@ -1,8 +1,10 @@
-<ste:mktag name="initfoo">
+<ste:mktag name="inittag" mandatory="innername">
<ste:set var="x"><ste:tagcontent /></ste:set>
- <ste:mktag name="foo">
+ <ste:mktag name="$_tag_parameters[innername]">
<ste:calc>$x + <ste:tagcontent /></ste:calc>
</ste:mktag>
</ste:mktag>
-<ste:initfoo>10</ste:initfoo>
-<ste:foo>20</ste:foo> \ No newline at end of file
+<ste:inittag innername="foo">10</ste:inittag>
+<ste:inittag innername="bar">20</ste:inittag>
+<ste:foo>30</ste:foo>
+<ste:bar>40</ste:bar> \ No newline at end of file
diff --git a/tests/test_closure/want b/tests/test_closure/want
index 64bb6b7..98d2f20 100644
--- a/tests/test_closure/want
+++ b/tests/test_closure/want
@@ -1 +1,2 @@
-30
+40
+60