Add some tests for invalid booleans
authorMatthias Clasen <mclasen@redhat.com>
Tue, 27 Nov 2007 02:29:31 +0000 (02:29 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 27 Nov 2007 02:29:31 +0000 (02:29 +0000)
2007-11-26  Matthias Clasen  <mclasen@redhat.com>

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

svn path=/trunk/; revision=5949

ChangeLog
tests/markup-collect.c

index 7926d80..96b268b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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).
index bf1b868..70c4b71 100644 (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