Add some tests for invalid booleans

2007-11-26  Matthias Clasen  <mclasen@redhat.com>

        * tests/markup-collect.c: Add some tests for invalid booleans



svn path=/trunk/; revision=5949
This commit is contained in:
Matthias Clasen 2007-11-27 02:29:31 +00:00 committed by Matthias Clasen
parent 3b4c9c92dd
commit b9743a23dd
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2007-11-26 Matthias Clasen <mclasen@redhat.com>
* tests/markup-collect.c: Add some tests for invalid booleans
2007-11-26 Ryan Lortie <desrt@desrt.ca>
Add new function g_markup_collect_attributes (bug #496847).

View File

@ -126,7 +126,13 @@ static struct test tests[] =
{ "<str a='x' b='x' c='x' d='x' e='x' f='x' g='x' h='x' i='x' j='x' k='x' l='x' m='x' n='x' o='x' p='x' q='x' r='x' s='x' t='x' u='x' v='x' w='x' x='x' y='x' z='x' aa='x' bb='x' cc='x' dd='x' ee='x' ff='x' gg='x' hh='x' ii='x' jj='x' kk='x' ll='x' mm='x' nn='x' oo='x' pp='x' qq='x' rr='x' ss='x' tt='x' uu='x' vv='x' ww='x' xx='x' yy='x' zz='x' am='x' cm='x'/>",
"<str(0) (null) (null) (null) (null)>",
G_MARKUP_ERROR_UNKNOWN_ATTRIBUTE, "'a'" }
G_MARKUP_ERROR_UNKNOWN_ATTRIBUTE, "'a'" },
{ "<bool mb='ja'/>", "<bool(0) 0 0 -1>",
G_MARKUP_ERROR_INVALID_CONTENT, "'mb'" },
{ "<bool mb='nein'/>", "<bool(0) 0 0 -1>",
G_MARKUP_ERROR_INVALID_CONTENT, "'mb'" }
};
int