aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/unit_tests
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-01-12 14:29:37 +0100
committerEgor Tensin <egor@tensin.name>2026-01-12 14:29:37 +0100
commitb82c0639b9e35cc96f50a5c248b922975c240c06 (patch)
tree8f483334dc31034c52900378c9f07d34eb68f75f /test/unit_tests
parentworkflows/ci: remove ultimately unimportant comment (diff)
downloadwinapi-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.hpp4
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;