[gxml] Fixed duplicated unit tests names



commit 90e38815c4b94671bfb29d32e36c3916e797af41
Author: Daniel Espinosa <esodan gmail com>
Date:   Wed Nov 4 13:14:33 2015 -0600

    Fixed duplicated unit tests names

 test/AttrTest.vala                       |    8 ++++----
 test/SerializableBasicTypesTest.vala     |    4 ++--
 test/SerializablePropertyBoolTest.vala   |    2 +-
 test/SerializablePropertyDoubleTest.vala |    2 +-
 test/SerializablePropertyFloatTest.vala  |    4 ++--
 test/SerializablePropertyIntTest.vala    |    2 +-
 test/TwElementTest.vala                  |    4 ++--
 test/TwProcessingInstructionTest.vala    |    2 +-
 8 files changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/test/AttrTest.vala b/test/AttrTest.vala
index 4f2de18..0b4fad3 100644
--- a/test/AttrTest.vala
+++ b/test/AttrTest.vala
@@ -27,7 +27,7 @@ using GXml;
 /* TODO: add tests for g_warnings being set; apparently you can trap g_criticals and test error messages 
with gtester */
 class AttrTest : GXmlTest {
        public static void add_tests () {
-               Test.add_func ("/gxml/element/namespace_uri", () => {
+               Test.add_func ("/gxml/xattr/namespace_uri", () => {
                                xDocument doc = new xDocument.from_string ("<Wands 
xmlns:wands=\"http://mom.co.uk/wands\";><Wand price=\"43.56\" wands:core=\"dragon heart cord\" 
wands:shell=\"oak\"/></Wands>");
                                GXml.xNode root = doc.document_element;
                                xElement node = (xElement)root.child_nodes.item (0);
@@ -40,7 +40,7 @@ class AttrTest : GXmlTest {
                                assert (shell.namespace_uri == "http://mom.co.uk/wands";);
                                assert (price.namespace_uri == null);
                        });
-               Test.add_func ("/gxml/element/namespace_prefix", () => {
+               Test.add_func ("/gxml/xattr/namespace_prefix", () => {
                                xDocument doc = new xDocument.from_string ("<Wands 
xmlns:wands=\"http://mom.co.uk/wands\";><Wand price=\"43.56\" wands:core=\"dragon heart cord\" 
wands:shell=\"oak\"/></Wands>");
                                GXml.xNode root = doc.document_element;
                                xElement node = (xElement)root.child_nodes.item (0);
@@ -53,7 +53,7 @@ class AttrTest : GXmlTest {
                                assert (shell.namespace_prefix == "wands");
                                assert (price.namespace_prefix == null);
                        });
-               Test.add_func ("/gxml/element/local_name", () => {
+               Test.add_func ("/gxml/xattr/local_name", () => {
                                xDocument doc = new xDocument.from_string ("<Wands 
xmlns:wands=\"http://mom.co.uk/wands\";><Wand price=\"43.56\" wands:core=\"dragon heart cord\" 
wands:shell=\"oak\"/></Wands>");
                                GXml.xNode root = doc.document_element;
                                xElement node = (xElement)root.child_nodes.item (0);
@@ -92,7 +92,7 @@ class AttrTest : GXmlTest {
 
                                assert (attr.name == "broomSeries");
                        });
-               Test.add_func ("/gxml/attribute/node_value", () => {
+               Test.add_func ("/gxml/attribute/value", () => {
                                xDocument doc = get_doc ();
                                xAttr attr = doc.create_attribute ("bank");
 
diff --git a/test/SerializableBasicTypesTest.vala b/test/SerializableBasicTypesTest.vala
index 1a3e2dd..114f023 100644
--- a/test/SerializableBasicTypesTest.vala
+++ b/test/SerializableBasicTypesTest.vala
@@ -35,7 +35,7 @@ class SerializableBasicTypeTest : GXmlTest {
     public override string to_string () { return get_type ().name (); }
   }
   public static void add_tests () {
-    Test.add_func ("/gxml/serializable/basic_types/boolean",
+    Test.add_func ("/gxml/serializable/basic_types/boolean/serialize",
     () => {
       try {
         var bt = new BasicType ();
@@ -58,7 +58,7 @@ class SerializableBasicTypeTest : GXmlTest {
         assert_not_reached ();
       }
     });
-    Test.add_func ("/gxml/serializable/basic_types/boolean",
+    Test.add_func ("/gxml/serializable/basic_types/boolean/deserialize",
     () => {
       try {
         var bt = new BasicType ();
diff --git a/test/SerializablePropertyBoolTest.vala b/test/SerializablePropertyBoolTest.vala
index 7f690b9..882a523 100644
--- a/test/SerializablePropertyBoolTest.vala
+++ b/test/SerializablePropertyBoolTest.vala
@@ -100,7 +100,7 @@ class SerializablePropertyBoolTest : GXmlTest {
         assert_not_reached ();
       }
     });
-    Test.add_func ("/gxml/serializable/Bool/deserialize",
+    Test.add_func ("/gxml/serializable/Bool/deserialize/basic",
     () => {
       try {
         var doc1 = new xDocument.from_string ("""<?xml version="1.0"?>
diff --git a/test/SerializablePropertyDoubleTest.vala b/test/SerializablePropertyDoubleTest.vala
index 223ef3e..fb40163 100644
--- a/test/SerializablePropertyDoubleTest.vala
+++ b/test/SerializablePropertyDoubleTest.vala
@@ -103,7 +103,7 @@ class SerializablePropertyDoubleTest : GXmlTest {
         assert_not_reached ();
       }
     });
-    Test.add_func ("/gxml/serializable/Double/deserialize",
+    Test.add_func ("/gxml/serializable/Double/deserialize/basic",
     () => {
       try {
         var doc1 = new xDocument.from_string ("""<?xml version="1.0"?>
diff --git a/test/SerializablePropertyFloatTest.vala b/test/SerializablePropertyFloatTest.vala
index f892509..d70aeef 100644
--- a/test/SerializablePropertyFloatTest.vala
+++ b/test/SerializablePropertyFloatTest.vala
@@ -103,7 +103,7 @@ class SerializablePropertyFloatTest : GXmlTest {
         assert_not_reached ();
       }
     });
-    Test.add_func ("/gxml/serializable/Float/deserialize",
+    Test.add_func ("/gxml/serializable/Float/deserialize/basic",
     () => {
       try {
         var doc1 = new xDocument.from_string ("""<?xml version="1.0"?>
@@ -119,7 +119,7 @@ class SerializablePropertyFloatTest : GXmlTest {
         assert_not_reached ();
       }
     });
-    Test.add_func ("/gxml/serializable/Float/deserialize",
+    Test.add_func ("/gxml/serializable/Float/deserialize/aditional",
     () => {
       try {
         var doc1 = new xDocument.from_string ("""<?xml version="1.0"?>
diff --git a/test/SerializablePropertyIntTest.vala b/test/SerializablePropertyIntTest.vala
index c837e3c..913ebfa 100644
--- a/test/SerializablePropertyIntTest.vala
+++ b/test/SerializablePropertyIntTest.vala
@@ -97,7 +97,7 @@ class SerializablePropertyIntTest : GXmlTest {
         assert_not_reached ();
       }
     });
-    Test.add_func ("/gxml/serializable/Int/deserialize",
+    Test.add_func ("/gxml/serializable/Int/deserialize/basic",
     () => {
       try {
         var doc1 = new xDocument.from_string ("""<?xml version="1.0"?>
diff --git a/test/TwElementTest.vala b/test/TwElementTest.vala
index d3134d7..c334bd2 100644
--- a/test/TwElementTest.vala
+++ b/test/TwElementTest.vala
@@ -185,7 +185,7 @@ class TwElementTest : GXmlTest {
                        assert ("<dg:child xmlns:dg=\"http://developer.gnome.org/\";>" in str);
                        assert ("<nons xmlns=\"http://www.gnome.org/\"/>" in str);
                });
-               Test.add_func ("/gxml/tw-element/multiple-namespaces/default", () => {
+               Test.add_func ("/gxml/tw-element/multiple-namespaces/default/basic", () => {
                        var d = new TwDocument ();
                        var r = d.create_element ("root");
                        d.childs.add (r);
@@ -264,7 +264,7 @@ class TwElementTest : GXmlTest {
                        assert ("</ns:nons>" in str);
                        assert ("<gxml:nonsd/>" in str);
                });
-               Test.add_func ("/gxml/tw-element/multiple-namespaces/default", () => {
+               Test.add_func ("/gxml/tw-element/multiple-namespaces/default/1", () => {
                        var d = new TwDocument ();
                        var r = d.create_element ("root");
                        d.childs.add (r);
diff --git a/test/TwProcessingInstructionTest.vala b/test/TwProcessingInstructionTest.vala
index c154f47..a051fbb 100644
--- a/test/TwProcessingInstructionTest.vala
+++ b/test/TwProcessingInstructionTest.vala
@@ -24,7 +24,7 @@ using GXml;
 
 class TwProcessingInstructionTest : GXmlTest {
        public static void add_tests () {
-               Test.add_func ("/gxml/tw-comment", () => {
+               Test.add_func ("/gxml/tw-processinginstruction", () => {
                        try {
                                var d = new TwDocument ();
                                var r = d.create_element ("root");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]