gschema-test: invert expectation for min/max omit

It is now completely valid.

Fix up what is now a legitimate range error in the schema used in one of
the tests.
This commit is contained in:
Ryan Lortie 2011-03-31 15:11:30 +05:30
parent cde83c8ccd
commit d2af82e820
2 changed files with 4 additions and 4 deletions

View File

@ -50,8 +50,8 @@ static const SchemaTest tests[] = {
{ "bad-type", NULL, "*invalid GVariant type string*" },
{ "overflow", NULL, "*out of range*" },
{ "range-wrong-type", NULL, "*<range> not allowed for keys of type*" },
{ "range-missing-min", NULL, "*element 'range' requires attribute 'min'*" },
{ "range-missing-max", NULL, "*element 'range' requires attribute 'max'*" },
{ "range-missing-min", NULL, NULL },
{ "range-missing-max", NULL, NULL },
{ "default-out-of-range", NULL, "*<default> is not contained in the specified range*" },
{ "choices-wrong-type", NULL, "*<choices> not allowed for keys of type*" },
{ "choice-missing-value", NULL, "*element 'choice' requires attribute 'value'*" },

View File

@ -1,8 +1,8 @@
<schemalist>
<schema id="test">
<key name="test" type="i">
<range min="100" />
<default>2</default>
<range min="100"/>
<default>200</default>
</key>
</schema>
</schemalist>