Skip to content

Commit

Permalink
grader: revert beautifying to unicode chars
Browse files Browse the repository at this point in the history
  • Loading branch information
fushar committed Aug 16, 2024
1 parent 3d40ddd commit 236a175
Show file tree
Hide file tree
Showing 7 changed files with 170 additions and 170 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,18 @@ void ac() throws GradingException {
ImmutableList.of(
testGroupResult(
0,
testCaseResult(ACCEPTED, "", 0, 1, 2),
testCaseResult(ACCEPTED, "", 0, 1, 2),
testCaseResult(ACCEPTED, "", 0, 2)),
testCaseResult(ACCEPTED, "*", 0, 1, 2),
testCaseResult(ACCEPTED, "*", 0, 1, 2),
testCaseResult(ACCEPTED, "*", 0, 2)),
testGroupResult(
1,
testCaseResult(ACCEPTED, "", 1, 2),
testCaseResult(ACCEPTED, "", 1, 2)),
testCaseResult(ACCEPTED, "*", 1, 2),
testCaseResult(ACCEPTED, "*", 1, 2)),
testGroupResult(
2,
testCaseResult(ACCEPTED, "", 2),
testCaseResult(ACCEPTED, "", 2),
testCaseResult(ACCEPTED, "", 2))),
testCaseResult(ACCEPTED, "*", 2),
testCaseResult(ACCEPTED, "*", 2),
testCaseResult(ACCEPTED, "*", 2))),
ImmutableList.of(
subtaskResult(1, ACCEPTED, 30),
subtaskResult(2, ACCEPTED, 70)));
Expand All @@ -79,18 +79,18 @@ void wa_30() throws GradingException {
ImmutableList.of(
testGroupResult(
0,
testCaseResult(ACCEPTED, "", 0, 1, 2),
testCaseResult(ACCEPTED, "", 0, 1, 2),
testCaseResult(ACCEPTED, "", 0, 2)),
testCaseResult(ACCEPTED, "*", 0, 1, 2),
testCaseResult(ACCEPTED, "*", 0, 1, 2),
testCaseResult(ACCEPTED, "*", 0, 2)),
testGroupResult(
1,
testCaseResult(ACCEPTED, "", 1, 2),
testCaseResult(ACCEPTED, "", 1, 2)),
testCaseResult(ACCEPTED, "*", 1, 2),
testCaseResult(ACCEPTED, "*", 1, 2)),
testGroupResult(
2,
testCaseResult(ACCEPTED, "", 2),
testCaseResult(ACCEPTED, "", 2),
testCaseResult(WRONG_ANSWER, "", 2))),
testCaseResult(ACCEPTED, "*", 2),
testCaseResult(ACCEPTED, "*", 2),
testCaseResult(WRONG_ANSWER, "X", 2))),
ImmutableList.of(
subtaskResult(1, ACCEPTED, 30),
subtaskResult(2, WRONG_ANSWER, 0)));
Expand All @@ -106,13 +106,13 @@ void wa_30_at_sample() throws GradingException {
ImmutableList.of(
testGroupResult(
0,
testCaseResult(ACCEPTED, "", 0, 1, 2),
testCaseResult(ACCEPTED, "", 0, 1, 2),
testCaseResult(WRONG_ANSWER, "", 0, 2)),
testCaseResult(ACCEPTED, "*", 0, 1, 2),
testCaseResult(ACCEPTED, "*", 0, 1, 2),
testCaseResult(WRONG_ANSWER, "X", 0, 2)),
testGroupResult(
1,
testCaseResult(ACCEPTED, "", 1, 2),
testCaseResult(ACCEPTED, "", 1, 2)),
testCaseResult(ACCEPTED, "*", 1, 2),
testCaseResult(ACCEPTED, "*", 1, 2)),
testGroupResult(
2,
testCaseResult(SKIPPED, "?", Optional.empty(), 2),
Expand All @@ -133,18 +133,18 @@ void tle_30() throws GradingException {
ImmutableList.of(
testGroupResult(
0,
testCaseResult(ACCEPTED, "", 0, 1, 2),
testCaseResult(ACCEPTED, "", 0, 1, 2),
testCaseResult(ACCEPTED, "", 0, 2)),
testCaseResult(ACCEPTED, "*", 0, 1, 2),
testCaseResult(ACCEPTED, "*", 0, 1, 2),
testCaseResult(ACCEPTED, "*", 0, 2)),
testGroupResult(
1,
testCaseResult(ACCEPTED, "", 1, 2),
testCaseResult(ACCEPTED, "", 1, 2)),
testCaseResult(ACCEPTED, "*", 1, 2),
testCaseResult(ACCEPTED, "*", 1, 2)),
testGroupResult(
2,
testCaseResult(ACCEPTED, "", 2),
testCaseResult(ACCEPTED, "", 2),
testCaseResult(TIME_LIMIT_EXCEEDED, "", Optional.of(TIMED_OUT), 2))),
testCaseResult(ACCEPTED, "*", 2),
testCaseResult(ACCEPTED, "*", 2),
testCaseResult(TIME_LIMIT_EXCEEDED, "X", Optional.of(TIMED_OUT), 2))),
ImmutableList.of(
subtaskResult(1, ACCEPTED, 30),
subtaskResult(2, TIME_LIMIT_EXCEEDED, 0)));
Expand All @@ -160,12 +160,12 @@ void wa_0() throws GradingException {
ImmutableList.of(
testGroupResult(
0,
testCaseResult(ACCEPTED, "", 0, 1, 2),
testCaseResult(ACCEPTED, "", 0, 1, 2),
testCaseResult(ACCEPTED, "", 0, 2)),
testCaseResult(ACCEPTED, "*", 0, 1, 2),
testCaseResult(ACCEPTED, "*", 0, 1, 2),
testCaseResult(ACCEPTED, "*", 0, 2)),
testGroupResult(
1,
testCaseResult(WRONG_ANSWER, "", 1, 2),
testCaseResult(WRONG_ANSWER, "X", 1, 2),
testCaseResult(SKIPPED, "?", Optional.empty(), 1, 2)),
testGroupResult(
2,
Expand All @@ -187,18 +187,18 @@ void ac_with_custom_scorer() throws GradingException {
ImmutableList.of(
testGroupResult(
0,
testCaseResult(ACCEPTED, "", 0, 1, 2),
testCaseResult(ACCEPTED, "", 0, 1, 2),
testCaseResult(ACCEPTED, "", 0, 2)),
testCaseResult(ACCEPTED, "*", 0, 1, 2),
testCaseResult(ACCEPTED, "*", 0, 1, 2),
testCaseResult(ACCEPTED, "*", 0, 2)),
testGroupResult(
1,
testCaseResult(ACCEPTED, "", 1, 2),
testCaseResult(ACCEPTED, "", 1, 2)),
testCaseResult(ACCEPTED, "*", 1, 2),
testCaseResult(ACCEPTED, "*", 1, 2)),
testGroupResult(
2,
testCaseResult(ACCEPTED, "", 2),
testCaseResult(ACCEPTED, "", 2),
testCaseResult(ACCEPTED, "", 2))),
testCaseResult(ACCEPTED, "*", 2),
testCaseResult(ACCEPTED, "*", 2),
testCaseResult(ACCEPTED, "*", 2))),
ImmutableList.of(
subtaskResult(1, ACCEPTED, 30),
subtaskResult(2, ACCEPTED, 70)));
Expand All @@ -215,17 +215,17 @@ void ok_minimum_score_with_custom_scorer() throws GradingException {
ImmutableList.of(
testGroupResult(
0,
testCaseResult(ACCEPTED, "", 0, 1, 2),
testCaseResult(ACCEPTED, "", 0, 1, 2),
testCaseResult(ACCEPTED, "", 0, 2)),
testCaseResult(ACCEPTED, "*", 0, 1, 2),
testCaseResult(ACCEPTED, "*", 0, 1, 2),
testCaseResult(ACCEPTED, "*", 0, 2)),
testGroupResult(
1,
testCaseResult(ACCEPTED, "", 1, 2),
testCaseResult(ACCEPTED, "", 1, 2)),
testCaseResult(ACCEPTED, "*", 1, 2),
testCaseResult(ACCEPTED, "*", 1, 2)),
testGroupResult(
2,
testCaseResult(ACCEPTED, "", 2),
testCaseResult(ACCEPTED, "", 2),
testCaseResult(ACCEPTED, "*", 2),
testCaseResult(ACCEPTED, "*", 2),
testCaseResult(OK, "10", 2))),
ImmutableList.of(
subtaskResult(1, ACCEPTED, 30),
Expand All @@ -242,18 +242,18 @@ void wa_30_with_custom_scorer() throws GradingException {
ImmutableList.of(
testGroupResult(
0,
testCaseResult(ACCEPTED, "", 0, 1, 2),
testCaseResult(ACCEPTED, "", 0, 1, 2),
testCaseResult(ACCEPTED, "", 0, 2)),
testCaseResult(ACCEPTED, "*", 0, 1, 2),
testCaseResult(ACCEPTED, "*", 0, 1, 2),
testCaseResult(ACCEPTED, "*", 0, 2)),
testGroupResult(
1,
testCaseResult(ACCEPTED, "", 1, 2),
testCaseResult(ACCEPTED, "", 1, 2)),
testCaseResult(ACCEPTED, "*", 1, 2),
testCaseResult(ACCEPTED, "*", 1, 2)),
testGroupResult(
2,
testCaseResult(ACCEPTED, "", 2),
testCaseResult(ACCEPTED, "", 2),
testCaseResult(WRONG_ANSWER, "", 2))),
testCaseResult(ACCEPTED, "*", 2),
testCaseResult(ACCEPTED, "*", 2),
testCaseResult(WRONG_ANSWER, "X", 2))),
ImmutableList.of(
subtaskResult(1, ACCEPTED, 30),
subtaskResult(2, WRONG_ANSWER, 0)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,18 @@ void ac() throws GradingException {
ImmutableList.of(
testGroupResult(
0,
testCaseResult(ACCEPTED, "", 0, 1, 2),
testCaseResult(ACCEPTED, "", 0, 1, 2),
testCaseResult(ACCEPTED, "", 0, 2)),
testCaseResult(ACCEPTED, "*", 0, 1, 2),
testCaseResult(ACCEPTED, "*", 0, 1, 2),
testCaseResult(ACCEPTED, "*", 0, 2)),
testGroupResult(
1,
testCaseResult(ACCEPTED, "", 1, 2),
testCaseResult(ACCEPTED, "", 1, 2)),
testCaseResult(ACCEPTED, "*", 1, 2),
testCaseResult(ACCEPTED, "*", 1, 2)),
testGroupResult(
2,
testCaseResult(ACCEPTED, "", 2),
testCaseResult(ACCEPTED, "", 2),
testCaseResult(ACCEPTED, "", 2))),
testCaseResult(ACCEPTED, "*", 2),
testCaseResult(ACCEPTED, "*", 2),
testCaseResult(ACCEPTED, "*", 2))),
ImmutableList.of(
subtaskResult(1, ACCEPTED, 30),
subtaskResult(2, ACCEPTED, 70)));
Expand All @@ -75,16 +75,16 @@ void wa_30() throws GradingException {
ImmutableList.of(
testGroupResult(
0,
testCaseResult(ACCEPTED, "", 0, 1, 2),
testCaseResult(ACCEPTED, "", 0, 1, 2),
testCaseResult(ACCEPTED, "", 0, 2)),
testCaseResult(ACCEPTED, "*", 0, 1, 2),
testCaseResult(ACCEPTED, "*", 0, 1, 2),
testCaseResult(ACCEPTED, "*", 0, 2)),
testGroupResult(
1,
testCaseResult(ACCEPTED, "", 1, 2),
testCaseResult(ACCEPTED, "", 1, 2)),
testCaseResult(ACCEPTED, "*", 1, 2),
testCaseResult(ACCEPTED, "*", 1, 2)),
testGroupResult(
2,
testCaseResult(WRONG_ANSWER, "", 2),
testCaseResult(WRONG_ANSWER, "X", 2),
testCaseResult(SKIPPED, "?", Optional.empty(), 2),
testCaseResult(SKIPPED, "?", Optional.empty(), 2))),
ImmutableList.of(
Expand All @@ -104,16 +104,16 @@ void wa_30_with_custom_scorer() throws GradingException {
ImmutableList.of(
testGroupResult(
0,
testCaseResult(ACCEPTED, "", 0, 1, 2),
testCaseResult(ACCEPTED, "", 0, 1, 2),
testCaseResult(ACCEPTED, "", 0, 2)),
testCaseResult(ACCEPTED, "*", 0, 1, 2),
testCaseResult(ACCEPTED, "*", 0, 1, 2),
testCaseResult(ACCEPTED, "*", 0, 2)),
testGroupResult(
1,
testCaseResult(ACCEPTED, "", 1, 2),
testCaseResult(ACCEPTED, "", 1, 2)),
testCaseResult(ACCEPTED, "*", 1, 2),
testCaseResult(ACCEPTED, "*", 1, 2)),
testGroupResult(
2,
testCaseResult(WRONG_ANSWER, "", 2),
testCaseResult(WRONG_ANSWER, "X", 2),
testCaseResult(SKIPPED, "?", Optional.empty(), 2),
testCaseResult(SKIPPED, "?", Optional.empty(), 2))),
ImmutableList.of(
Expand Down
Loading

0 comments on commit 236a175

Please sign in to comment.