Catch comparison expressions with bsoncxx::document::view operands should pretty-print when test fails

XMLWordPrintableJSON

    • None
    • None
    • None
    • None
    • None
    • None
    • None

      For document::view variables "a" and "b", a failure of the Catch test statement "REQUIRE(a == b)" results in the following output:

      1: /Users/rassi/work/mongo-cxx-driver/src/bsoncxx/test/bson_builder.cpp:938: FAILED:
      1:   REQUIRE( a == b )
      1: with expansion:
      1:   {?} == {?}
      

      Instead of printing a question mark for "a" and "b", their JSON representations should be printed instead.

      This may be as simple as providing a "operator<<(std::ostream&, document::view)" overload in the right place which streams the result of to_json().

            Assignee:
            Samuel Rossi (Inactive)
            Reporter:
            J Rassi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: