Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LWT: Support for wide/unicode strings #184

Open
Flamefire opened this issue Jan 3, 2025 · 0 comments
Open

LWT: Support for wide/unicode strings #184

Flamefire opened this issue Jan 3, 2025 · 0 comments

Comments

@Flamefire
Copy link
Contributor

Currently BOOST_TEST_EQ(std::u16string{}, std::u16string{}) fails to compile. Similar for wstring, u32string and u8string.

Additionally support for char8_t comparison is missing.

While implementing this I'd suggest to try printing the ASCII subset of those directly similar to the char handling. The current differences in output are a bit confusing:

: test 's[0] == s2[1]' ('1' == '2') failed in function 'void test(const Ch *) [Ch = char]'
: test 's[0] == s2[1]' ('49' == '50') failed in function 'void test(const Ch *) [Ch = wchar_t]'
: test 's[0] == s2[1]' ('49' == '50') failed in function 'void test(const Ch *) [Ch = char16_t]'
: test 's[0] == s2[1]' ('49' == '50') failed in function 'void test(const Ch *) [Ch = char32_t]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant