Skip to content

Commit

Permalink
Fix line number parsing in tryCleanUpAssertionFailedError
Browse files Browse the repository at this point in the history
  • Loading branch information
MaisiKoleni committed Dec 7, 2020
1 parent 07c90b6 commit e8d3658
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/de/tum/in/test/api/io/OutputTester.java
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ private static AssertionFailedError tryCleanUpAssertionFailedError(List<String>
String failureMessage = afe.getMessage();
Matcher matcher = EXPECTED_LINE_PATTERN.matcher(failureMessage);
if (matcher.find()) {
int lineNumber = Integer.parseInt(matcher.group(1));
int lineNumber = Integer.parseInt(matcher.group(1), 16);
String expectedLine = lines.get(lineNumber);
StringBuilder cleanExpectedLine = new StringBuilder(expectedLine);
if (startsWithEscape(expectedLine))
Expand Down

0 comments on commit e8d3658

Please sign in to comment.