diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2014-07-03 09:57:09 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2014-07-03 09:57:09 +0200 |
commit | 1a4099b78717b16f632b0e7e0980a27811221e52 (patch) | |
tree | 87a63393fc207082b7418987309581a9a79e49a4 /tests/cxx/tree/binary/cdr/driver.cxx | |
parent | 06258b8eae3d5af9a1af0206bb5a8e5c80dde455 (diff) |
Implement anyType and anySimpleType content representation
anyType as a DOM fragment, similar to wildcards. anySimpleType as
a text string.
Diffstat (limited to 'tests/cxx/tree/binary/cdr/driver.cxx')
-rw-r--r-- | tests/cxx/tree/binary/cdr/driver.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/cxx/tree/binary/cdr/driver.cxx b/tests/cxx/tree/binary/cdr/driver.cxx index 65c88fa..a2d7195 100644 --- a/tests/cxx/tree/binary/cdr/driver.cxx +++ b/tests/cxx/tree/binary/cdr/driver.cxx @@ -127,6 +127,14 @@ main (int argc, char* argv[]) assert (r->time () == c->time ()); assert (r->date_time () == c->date_time ()); assert (r->duration () == c->duration ()); + + // anySimpleType + // + assert (!r->any_simple_type_attr ().text_content ().empty ()); + assert (r->any_simple_type_attr () == c->any_simple_type_attr ()); + + assert (!r->any_simple_type ().text_content ().empty ()); + assert (r->any_simple_type () == c->any_simple_type ()); } catch (xml_schema::exception const& e) { |