Skip to content

Commit 288c5bb

Browse files
committed
测试git action
1 parent 93de5a2 commit 288c5bb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Test/src/CodeFormatTest.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ bool TestFormatted(std::string input, const std::string& shouldBe, std::shared_p
2222
auto f1 = StringUtil::TrimSpace(formattedText);
2323
auto f2 = StringUtil::TrimSpace(shouldBe);
2424

25-
std::cout << format("size {} {}", f1.size(), f2.size()) << std::endl;
2625
std::cout << format("size {} {}", f1.size(), f2.size()) << std::endl;
2726

2827
return StringUtil::TrimSpace(formattedText) == StringUtil::TrimSpace(shouldBe);
@@ -70,7 +69,7 @@ void CollectLuaFile(std::filesystem::path directoryPath, std::vector<std::string
7069

7170
std::string ReadFile(const std::string& path)
7271
{
73-
std::fstream fin(path, std::ios::in);
72+
std::fstream fin(path, std::ios::in | std::ios::binary);
7473

7574
if (fin.is_open())
7675
{
@@ -137,7 +136,7 @@ int main(int argc, char* argv[])
137136
bool passed = TestGrammar(text);
138137

139138
success &= passed;
140-
std::cout << format("test check grammar {} ... {}", path, passed? "passed" : "false") << std::endl;
139+
std::cout << format("test check grammar {} ... {}", path, passed ? "passed" : "false") << std::endl;
141140
}
142141
}
143142

0 commit comments

Comments
 (0)