Opened 15 years ago
Last modified 9 years ago
#1136 new Feature Requests
Let BOOST_CHECK_EQUAL support std::wstring
Reported by: | 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 , 14 years ago
Cc: | added |
---|
comment:2 by , 13 years ago
Cc: | added |
---|
follow-up: 4 comment:3 by , 11 years ago
Cc: | added |
---|
comment:5 by , 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.
The testing macros need to support any use of built-in wide-characters, whether it's
std::wstring
,wchar_t
arrays or pointers, or singlewchar_t
values/objects. I guess you need a special case towchar_t
-related types to be converted tochar
before being sent to the testingostream
. Code points that are shared betweenwchar_t
andchar
should map directly, other code point values could map to an escaped hex sequence.