Skip to content

Commit

Permalink
handle crlf in newtest parser
Browse files Browse the repository at this point in the history
  • Loading branch information
randomdude999 committed Jan 21, 2024
1 parent de96dfd commit 73e3018
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/asar-tests/newtest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ TestResult run_testcase(std::vector<uint8_t> base_rom, Testcase& testcase) {
asm_ss.ignore(3);
}
for(std::string line; std::getline(asm_ss, line); ) {
// remove trailing \r, artifact of windows newlines here
if(line.back() == '\r') line.erase(line.back());
if(line.substr(0, 2) == ";`") {
auto words = split_spaces(line.substr(2));
for(std::string& w : words) {
Expand Down

0 comments on commit 73e3018

Please sign in to comment.