diff options
Diffstat (limited to 'testdata/xmlparser')
-rw-r--r-- | testdata/xmlparser/generic.oxm | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/testdata/xmlparser/generic.oxm b/testdata/xmlparser/generic.oxm index 23b8d66..9d2d860 100644 --- a/testdata/xmlparser/generic.oxm +++ b/testdata/xmlparser/generic.oxm @@ -6,14 +6,20 @@ <field name="g" type="int"/> <field name="b" type="int"/> </struct> + </types> + <constants> + <constant name="zero" value="0" type="int" /> + <constant name="zeros" value="[0, 0, 0]" type="int[]" /> + <constant name="manyZeros" value="[[0, 0], [0, 0], [0, 0]]" type="int[][]" /> + <constant name="black" value="[zero, zero, zero]" type="color" /> + </constants> + <types> <struct name="structWithColor"> <field name="color" type="color" default="black" /> </struct> </types> <constants> - <constant name="zero" value="42" type="string" /> - <constant name="black" value="[0, zero, 0]" type="color" /> - <constant name="err" value="0" type="int" /> + <constant name="blackStructWithColor" value="[color=black]" type="structWithColor" /> </constants> </typesystem> |