diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-02-20 19:17:25 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-02-20 19:17:25 +0200 |
commit | 9539f5fe95589c9fc6c53290b4ed5a1af42e0d8c (patch) | |
tree | 7ff9db0c33b0ac925e4800d93bd5dee28a55520f /tests/cxx | |
parent | 7e3616382296533e5016caec792b88a6b8556268 (diff) |
Allow empty base64Binary value space per spec
Diffstat (limited to 'tests/cxx')
-rw-r--r-- | tests/cxx/parser/validation/built-in/binary/driver.cxx | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/tests/cxx/parser/validation/built-in/binary/driver.cxx b/tests/cxx/parser/validation/built-in/binary/driver.cxx index 0496f2e..75cfa5d 100644 --- a/tests/cxx/parser/validation/built-in/binary/driver.cxx +++ b/tests/cxx/parser/validation/built-in/binary/driver.cxx @@ -65,6 +65,17 @@ main () base64_binary_pimpl p; p.pre (); p._pre_impl (c); + p._characters (""); + p._post (); + assert (!c.error_type () && + compare (p.post_base64_binary (), "", 0)); + } + + { + context c; + base64_binary_pimpl p; + p.pre (); + p._pre_impl (c); p._characters (" \t\n "); p._characters ("MTIzND "); p._characters ("VhYmNqaw = = "); @@ -138,16 +149,6 @@ main () base64_binary_pimpl p; p.pre (); p._pre_impl (c); - // p._characters (""); - p._post (); - assert (c.schema_error () == schema_error::invalid_base64_binary_value); - } - - { - context c; - base64_binary_pimpl p; - p.pre (); - p._pre_impl (c); p._characters ("YQ"); p._post (); assert (c.schema_error () == schema_error::invalid_base64_binary_value); |