From e7ae21f7282a90b9bda68695af362990d8a63675 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 20 Apr 2014 15:46:26 +0200 Subject: Add support for fractionDigits in serializer --- tests/cxx/hybrid/facets/driver.cxx | 6 ++++++ tests/cxx/hybrid/facets/test-000.std | 2 ++ tests/cxx/hybrid/facets/test-000.xml | 1 + tests/cxx/hybrid/facets/test.xsd | 1 + 4 files changed, 10 insertions(+) (limited to 'tests') diff --git a/tests/cxx/hybrid/facets/driver.cxx b/tests/cxx/hybrid/facets/driver.cxx index 9bdfec4..bb2f258 100644 --- a/tests/cxx/hybrid/facets/driver.cxx +++ b/tests/cxx/hybrid/facets/driver.cxx @@ -36,6 +36,12 @@ main (int argc, char* argv[]) doc_p.parse (argv[1]); type* r = root_p.post (); + // Test fractionDigit. + // + decimal d; + d.base_value (50.123); + r->decimal ().push_back (d); + // Serialize. // root_saggr root_s; diff --git a/tests/cxx/hybrid/facets/test-000.std b/tests/cxx/hybrid/facets/test-000.std index e777433..3f94b6c 100644 --- a/tests/cxx/hybrid/facets/test-000.std +++ b/tests/cxx/hybrid/facets/test-000.std @@ -47,6 +47,8 @@ 10.5 50 99.5 + 99.55 + 50.12 12345 12345 1234567 diff --git a/tests/cxx/hybrid/facets/test-000.xml b/tests/cxx/hybrid/facets/test-000.xml index 814be66..6430ff1 100644 --- a/tests/cxx/hybrid/facets/test-000.xml +++ b/tests/cxx/hybrid/facets/test-000.xml @@ -63,6 +63,7 @@ 10.5 50.0 99.5 + 99.55 12345 diff --git a/tests/cxx/hybrid/facets/test.xsd b/tests/cxx/hybrid/facets/test.xsd index 86c9776..7a45dfe 100644 --- a/tests/cxx/hybrid/facets/test.xsd +++ b/tests/cxx/hybrid/facets/test.xsd @@ -110,6 +110,7 @@ + -- cgit v1.1