Modify

Opened 10 years ago

Last modified 4 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);

Attachments (0)

Change History (5)

comment:1 Changed 9 years ago by Daryle Walker

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 Changed 8 years ago by Mateusz Loskot

Cc: mateusz@… added

comment:3 Changed 6 years ago by dtrebbien@…

Cc: dtrebbien@… added

comment:4 in reply to:  3 Changed 5 years ago by anonymous

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

comment:5 Changed 4 years ago by Richard <legalize@…>

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Gennadiy Rozental.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.