Skip to content

Commit

Permalink
Update GradedTestListenerHumanReadable.java
Browse files Browse the repository at this point in the history
Fixed bug where human readable listener had reversed logic for passed vs. failed tests.
  • Loading branch information
joshHug authored Apr 11, 2024
1 parent e235722 commit cb46896
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ public void executionFinished(TestIdentifier testIdentifier, TestExecutionResult
if (cause != null) {
System.out.println(JUnitUtilities.throwableToString(cause));
}
totalScore += getTestMaxScore(gradedTest);
} else {
testsFailed++;
} else {
totalScore += getTestMaxScore(gradedTest);
}
} catch (IllegalAccessException | InvocationTargetException e) {
throw new RuntimeException(e);
Expand Down

0 comments on commit cb46896

Please sign in to comment.