add tests for CBOR

parent b74474e3
...@@ -791,7 +791,7 @@ class binary_reader ...@@ -791,7 +791,7 @@ class binary_reader
break; break;
} }
default: default:
break; return parse_cbor_internal(true, tag_handler);
} }
get(); get();
return get_cbor_binary(b) && sax->binary(b); return get_cbor_binary(b) && sax->binary(b);
......
...@@ -2572,6 +2572,9 @@ TEST_CASE("Tagged values") ...@@ -2572,6 +2572,9 @@ TEST_CASE("Tagged values")
// check that parsing succeeds and gets original value in ignore mode // check that parsing succeeds and gets original value in ignore mode
auto j_tagged = json::from_cbor(v_tagged, true, true, json::cbor_tag_handler_t::ignore); auto j_tagged = json::from_cbor(v_tagged, true, true, json::cbor_tag_handler_t::ignore);
CHECK(j_tagged == j); CHECK(j_tagged == j);
auto j_tagged_stored = json::from_cbor(v_tagged, true, true, json::cbor_tag_handler_t::store);
CHECK(j_tagged_stored == j);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment