Skip to content

Commit

Permalink
fix: 테스트 케이스 검사 정확도 향상 (#31)
Browse files Browse the repository at this point in the history
fix issue : #30
  • Loading branch information
clxxrlove authored Apr 11, 2024
1 parent c3118cd commit 30166f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/code_sample/TestHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ public static void main(String[] args) {
e.printStackTrace();
}

String output = outputStream.toString();
String output = outputStream.toString().stripTrailing();
System.setOut(printOut);
if (output.equals(testCase.expectedOutput)) {
if (output.equals(testCase.expectedOutput.stripTrailing())) {
passedCases++;
continue;
} else {
Expand Down

0 comments on commit 30166f9

Please sign in to comment.