Opened 15 years ago

Last modified 9 years ago

#1136 new Feature Requests

Let BOOST_CHECK_EQUAL support std::wstring

Reported by: pop.atry@… Owned by: Gennadiy Rozental
Milestone: To Be Determined Component: test
Version: Boost 1.34.1 Severity: Problem
Keywords: Cc: dwalker07@…, mateusz@…, dtrebbien@…

Description

e.g.

std::wstring s1,s2;
BOOST_CHECK_EQUAL(s1, s2);

Change History (5)

comment:1 by Daryle Walker, 14 years ago

Cc: dwalker07@… added

The testing macros need to support any use of built-in wide-characters, whether it's std::wstring, wchar_t arrays or pointers, or single wchar_t values/objects. I guess you need a special case to wchar_t-related types to be converted to char before being sent to the testing ostream. Code points that are shared between wchar_t and char should map directly, other code point values could map to an escaped hex sequence.

comment:2 by Mateusz Loskot, 13 years ago

Cc: mateusz@… added

comment:3 by dtrebbien@…, 11 years ago

Cc: dtrebbien@… added

in reply to:  3 comment:4 by anonymous, 10 years ago

Replying to dtrebbien@…: Do you have any plans to update this?

comment:5 by Richard <legalize@…>, 9 years ago

It seems there are two alternatives: allow support for wide character stream output logs and reports, or use narrow.

Note: See TracTickets for help on using tickets.