From b7197929af1cca15e490703ba3632ae52a348b60 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 14 Oct 2010 12:21:35 +0200 Subject: New mapping for anyType with support for polymorphism --- tests/cxx/hybrid/polymorphism/any-type/driver.cxx | 2 +- .../cxx/hybrid/polymorphism/any-type/test-000.std | 15 ++++++++++++ .../cxx/hybrid/polymorphism/any-type/test-000.xml | 27 +++++++++++++++++++--- tests/cxx/hybrid/polymorphism/any-type/test.xsd | 2 ++ tests/cxx/hybrid/polymorphism/makefile | 4 ++-- 5 files changed, 44 insertions(+), 6 deletions(-) create mode 100644 tests/cxx/hybrid/polymorphism/any-type/test-000.std (limited to 'tests') diff --git a/tests/cxx/hybrid/polymorphism/any-type/driver.cxx b/tests/cxx/hybrid/polymorphism/any-type/driver.cxx index bfea16f..cf39e15 100644 --- a/tests/cxx/hybrid/polymorphism/any-type/driver.cxx +++ b/tests/cxx/hybrid/polymorphism/any-type/driver.cxx @@ -52,7 +52,7 @@ main (int argc, char* argv[]) doc_s.add_prefix ("xsi", "http://www.w3.org/2001/XMLSchema-instance"); root_s.pre (*r); - doc_s.serialize (cout); + doc_s.serialize (cout, xml_schema::document_simpl::pretty_print); root_s.post (); delete r; diff --git a/tests/cxx/hybrid/polymorphism/any-type/test-000.std b/tests/cxx/hybrid/polymorphism/any-type/test-000.std new file mode 100644 index 0000000..0c40a51 --- /dev/null +++ b/tests/cxx/hybrid/polymorphism/any-type/test-000.std @@ -0,0 +1,15 @@ + + + + + 123 + abc + + + 123 + abc + 9 + 8 + 7 + + \ No newline at end of file diff --git a/tests/cxx/hybrid/polymorphism/any-type/test-000.xml b/tests/cxx/hybrid/polymorphism/any-type/test-000.xml index f0a8bcb..7a6563c 100644 --- a/tests/cxx/hybrid/polymorphism/any-type/test-000.xml +++ b/tests/cxx/hybrid/polymorphism/any-type/test-000.xml @@ -1,7 +1,28 @@ - abcjunk123 - 123abc - 123abc987 + + abc + junk + 123 + + + + abc + junk + 123 + + + + 123 + abc + + + + 123 + abc + 9 + 8 + 7 + diff --git a/tests/cxx/hybrid/polymorphism/any-type/test.xsd b/tests/cxx/hybrid/polymorphism/any-type/test.xsd index 33b5251..ab35171 100644 --- a/tests/cxx/hybrid/polymorphism/any-type/test.xsd +++ b/tests/cxx/hybrid/polymorphism/any-type/test.xsd @@ -2,6 +2,7 @@ + @@ -10,6 +11,7 @@ + diff --git a/tests/cxx/hybrid/polymorphism/makefile b/tests/cxx/hybrid/polymorphism/makefile index 7523bb2..c418d34 100644 --- a/tests/cxx/hybrid/polymorphism/makefile +++ b/tests/cxx/hybrid/polymorphism/makefile @@ -8,12 +8,12 @@ include $(dir $(lastword $(MAKEFILE_LIST)))../../../../build/bootstrap.make # NOTE: remember to update dist/tests/cxx/hybrid/polymorphis/{makefile, # nmakefile} if you change anything here. # -all_tests := enumeration multischema +all_tests := any-type enumeration multischema build_tests := ifeq ($(xsde_iostream),y) -build_tests += enumeration multischema +build_tests += any-type enumeration multischema endif default := $(out_base)/ -- cgit v1.1