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*" }, { "bad-type", NULL, "*invalid GVariant type string*" },
{ "overflow", NULL, "*out of range*" }, { "overflow", NULL, "*out of range*" },
{ "range-wrong-type", NULL, "*<range> not allowed for keys of type*" }, { "range-wrong-type", NULL, "*<range> not allowed for keys of type*" },
{ "range-missing-min", NULL, "*element 'range' requires attribute 'min'*" }, { "range-missing-min", NULL, NULL },
{ "range-missing-max", NULL, "*element 'range' requires attribute 'max'*" }, { "range-missing-max", NULL, NULL },
{ "default-out-of-range", NULL, "*<default> is not contained in the specified range*" }, { "default-out-of-range", NULL, "*<default> is not contained in the specified range*" },
{ "choices-wrong-type", NULL, "*<choices> not allowed for keys of type*" }, { "choices-wrong-type", NULL, "*<choices> not allowed for keys of type*" },
{ "choice-missing-value", NULL, "*element 'choice' requires attribute 'value'*" }, { "choice-missing-value", NULL, "*element 'choice' requires attribute 'value'*" },

View File

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