Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <gerwitzm@lovullo.com>2016-11-17 08:55:07 -0500
committerMike Gerwitz <gerwitzm@lovullo.com>2016-11-17 23:55:23 -0500
commitf396858fb18b915a0f03e6d02c4aebb55b0000bc (patch)
treed28c7edccab6573199093c42a4d7d0309dfc84d6 /test/symtable/symbols.xspec
parentc199f4739e17e841d90d6bfffce3806b8d0f2254 (diff)
downloadtame-f396858fb18b915a0f03e6d02c4aebb55b0000bc.tar.gz
tame-f396858fb18b915a0f03e6d02c4aebb55b0000bc.tar.bz2
tame-f396858fb18b915a0f03e6d02c4aebb55b0000bc.zip
Extracted meta symbol generation
* src/current/include/preproc/symtable.xsl (preproc:symtable)[lv:meta]: Extracted template. * src/symtable/symbols.xsl (preproc:symtable)[lv:meta]: Added template. * test/symtable/symbols.xsl (lv:meta): Scenario added
Diffstat (limited to 'test/symtable/symbols.xspec')
-rw-r--r--test/symtable/symbols.xspec26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/symtable/symbols.xspec b/test/symtable/symbols.xspec
index 53e8dde..d4dbdd8 100644
--- a/test/symtable/symbols.xspec
+++ b/test/symtable/symbols.xspec
@@ -44,4 +44,30 @@
desc="Test template" />
</expect>
</scenario>
+
+
+ <scenario label="lv:meta">
+ <context mode="preproc:symtable">
+ <lv:meta>
+ <lv:prop name="prop1">
+ <lv:const value="ignore" />
+ </lv:prop>
+
+ <lv:prop name="prop2">
+ <lv:const value="ignore" />
+ </lv:prop>
+ </lv:meta>
+ </context>
+
+ <expect label="derives symbols from properties">
+ <preproc:sym type="meta"
+ name=":meta:prop1"
+ desc="Metavalue prop1"
+ keep="true" />
+ <preproc:sym type="meta"
+ name=":meta:prop2"
+ desc="Metavalue prop2"
+ keep="true" />
+ </expect>
+ </scenario>
</description>