diff options
| author | Egor Tensin <egor@tensin.name> | 2026-01-12 14:29:37 +0100 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-01-12 14:29:37 +0100 |
| commit | b82c0639b9e35cc96f50a5c248b922975c240c06 (patch) | |
| tree | 8f483334dc31034c52900378c9f07d34eb68f75f /test/unit_tests/shared | |
| parent | workflows/ci: remove ultimately unimportant comment (diff) | |
| download | winapi-common-b82c0639b9e35cc96f50a5c248b922975c240c06.tar.gz winapi-common-b82c0639b9e35cc96f50a5c248b922975c240c06.zip | |
test/unit_tests: trying to fix console tests
Diffstat (limited to '')
| -rw-r--r-- | test/unit_tests/shared/console.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit_tests/shared/console.hpp b/test/unit_tests/shared/console.hpp index cdc12e4..2dcb78b 100644 --- a/test/unit_tests/shared/console.hpp +++ b/test/unit_tests/shared/console.hpp @@ -107,7 +107,9 @@ public: for (int16_t c = 0; c < buffer_size.X; ++c) { oss << buffer[i * buffer_size.X + c].Char.UnicodeChar; } - result.emplace_back(boost::trim_right_copy(winapi::narrow(oss.str()))); + std::wstring temp{oss.str()}; + temp.erase(std::remove(temp.begin(), temp.end(), '\0'), temp.end()); + result.emplace_back(boost::trim_right_copy(winapi::narrow(temp))); } return result; |
