From fea62f80ccb785791e1161ad2fe91665173cef04 Mon Sep 17 00:00:00 2001 From: James Shaw Date: Sun, 15 Jul 2007 15:02:37 +0000 Subject: Implement . Extend to handle equality test for ints. Extend convert_var_type and convert_attribute_name in order to generate the documentcreateelement test. svn path=/trunk/dom/; revision=3415 --- test/test-to-c.xsl | 102 ++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 82 insertions(+), 20 deletions(-) diff --git a/test/test-to-c.xsl b/test/test-to-c.xsl index 6c26730..f8d74b0 100644 --- a/test/test-to-c.xsl +++ b/test/test-to-c.xsl @@ -69,6 +69,11 @@ we generate an reporting that the element is not known. +#include <dom/dom.h> +#include "testutils.h" + + + int main(int argc, char **argv) @@ -82,8 +87,18 @@ int main(int argc, char **argv) + +/* +This source file was generated by test-to-c.xsl +and is a derived work from the source document. +The source document contained the following notice: + + +*/ + + - /** +/** @@ -92,7 +107,29 @@ int main(int argc, char **argv) - + + + + + + TestObject testObject = test_object_create(argc, argv, ".xml", false); + assert(testObject != NULL); + + = test_object_get_doc(testObject); + assert( != NULL); + + + + + + strcmp(test_object_get_mimetype(testObject), "") == 0 + - - strcmp(TODO, "") == 0 - - @@ -207,21 +240,43 @@ Assert templates - + - struct dom_string *match; - err = dom_string_create_from_const_ptr(doc , , + + struct dom_string *match; + struct dom_document *actualDoc; + err = dom_node_get_owner_document(, &actualDoc); + assert(err == DOM_NO_ERR); + + err = dom_string_create_from_const_ptr(actualDoc, , SLEN(), &match); assert(err == DOM_NO_ERR); - assert(dom_string_cmp(, match) == 0); + + assert( + + + dom_string_icmp + + + + <assertEquals ignoreCase='auto'> not supported + + + dom_string_cmp + + + (, match) == 0); + + + + assert( == ); Warning in assertEquals template: don't know how to compare variable type '' @@ -234,19 +289,20 @@ Assert templates - dom_ - document + dom_document - document_type + dom_document_type - string + dom_string + + + dom_element - Warning in convert_var_type template: unrecognised variable type '' @@ -256,9 +312,15 @@ Assert templates + + node_name + node_value + + node_type + -- cgit v1.2.3