We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55c28f6 commit 3924631Copy full SHA for 3924631
1 file changed
tests/Common.cpp
@@ -23,6 +23,10 @@ namespace Test
23
line.reserve(256);
24
25
while (std::getline(file, line)) {
26
+ // 去除行尾的 '\r'(适用于Windows换行符)
27
+ if (!line.empty() && line.back() == '\r') {
28
+ line.pop_back();
29
+ }
30
dataLines.push_back(std::move(line));
31
}
32
file.close();
0 commit comments