compile schemas test: open ranges for all types

We need to make sure that every value in the table actually parses with
GVariant.
This commit is contained in:
Ryan Lortie 2011-03-31 15:12:34 +05:30
parent d2af82e820
commit d95b750a1d
2 changed files with 78 additions and 1 deletions

View File

@ -118,7 +118,8 @@ static const SchemaTest tests[] = {
{ "flags-more-than-one-bit", NULL, "*flags values must have at most 1 bit set*" },
{ "flags-with-enum-attr", NULL, "*<enum id='flags'> not (yet) defined*" },
{ "flags-with-enum-tag", NULL, "*<flags id='flags'> not (yet) defined*" },
{ "inherit-gettext-domain", NULL, NULL }
{ "inherit-gettext-domain", NULL, NULL },
{ "range-type-test", NULL, NULL }
};

View File

@ -0,0 +1,76 @@
<schemalist>
<schema id="test">
<key name="y-min" type="y">
<range min="0"/>
<default>0</default>
</key>
<key name="y-max" type="y">
<range max="0"/>
<default>0</default>
</key>
<key name="n-min" type="n">
<range min="0"/>
<default>0</default>
</key>
<key name="n-max" type="n">
<range max="0"/>
<default>0</default>
</key>
<key name="q-min" type="q">
<range min="0"/>
<default>0</default>
</key>
<key name="q-max" type="q">
<range max="0"/>
<default>0</default>
</key>
<key name="i-min" type="i">
<range min="0"/>
<default>0</default>
</key>
<key name="i-max" type="i">
<range max="0"/>
<default>0</default>
</key>
<key name="u-min" type="u">
<range min="0"/>
<default>0</default>
</key>
<key name="u-max" type="u">
<range max="0"/>
<default>0</default>
</key>
<key name="x-min" type="x">
<range min="0"/>
<default>0</default>
</key>
<key name="x-max" type="x">
<range max="0"/>
<default>0</default>
</key>
<key name="t-min" type="t">
<range min="0"/>
<default>0</default>
</key>
<key name="t-max" type="t">
<range max="0"/>
<default>0</default>
</key>
<key name="d-min" type="d">
<range min="0"/>
<default>0</default>
</key>
<key name="d-max" type="d">
<range max="0"/>
<default>0</default>
</key>
</schema>
</schemalist>