From 236a1754a2ce1b5b175d5b89b85050da52e95d1c Mon Sep 17 00:00:00 2001 From: Ashar Fuadi Date: Fri, 16 Aug 2024 23:02:16 +0700 Subject: [PATCH] grader: revert beautifying to unicode chars --- ...SubtasksGradingEngineIntegrationTests.java | 112 +++++++++--------- ...SubtasksGradingEngineIntegrationTests.java | 40 +++---- ...asksGradingEngineJavaIntegrationTests.java | 40 +++---- ...SubtasksGradingEngineIntegrationTests.java | 36 +++--- ...SubtasksGradingEngineIntegrationTests.java | 96 +++++++-------- .../gabriel/aggregators/MinAggregator.java | 4 +- .../aggregators/MinAggregatorTests.java | 12 +- 7 files changed, 170 insertions(+), 170 deletions(-) diff --git a/judgels-backends/judgels-grader-engines/src/integTest/java/judgels/gabriel/engines/batch/BatchWithSubtasksGradingEngineIntegrationTests.java b/judgels-backends/judgels-grader-engines/src/integTest/java/judgels/gabriel/engines/batch/BatchWithSubtasksGradingEngineIntegrationTests.java index aab3cf716..05ce676cf 100644 --- a/judgels-backends/judgels-grader-engines/src/integTest/java/judgels/gabriel/engines/batch/BatchWithSubtasksGradingEngineIntegrationTests.java +++ b/judgels-backends/judgels-grader-engines/src/integTest/java/judgels/gabriel/engines/batch/BatchWithSubtasksGradingEngineIntegrationTests.java @@ -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))); @@ -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))); @@ -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), @@ -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))); @@ -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, @@ -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))); @@ -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), @@ -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))); diff --git a/judgels-backends/judgels-grader-engines/src/integTest/java/judgels/gabriel/engines/functional/FunctionalWithSubtasksGradingEngineIntegrationTests.java b/judgels-backends/judgels-grader-engines/src/integTest/java/judgels/gabriel/engines/functional/FunctionalWithSubtasksGradingEngineIntegrationTests.java index 4c04bd5cf..c13bdcba1 100644 --- a/judgels-backends/judgels-grader-engines/src/integTest/java/judgels/gabriel/engines/functional/FunctionalWithSubtasksGradingEngineIntegrationTests.java +++ b/judgels-backends/judgels-grader-engines/src/integTest/java/judgels/gabriel/engines/functional/FunctionalWithSubtasksGradingEngineIntegrationTests.java @@ -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))); @@ -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( @@ -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( diff --git a/judgels-backends/judgels-grader-engines/src/integTest/java/judgels/gabriel/engines/functional/FunctionalWithSubtasksGradingEngineJavaIntegrationTests.java b/judgels-backends/judgels-grader-engines/src/integTest/java/judgels/gabriel/engines/functional/FunctionalWithSubtasksGradingEngineJavaIntegrationTests.java index 474708f8a..32fa75198 100644 --- a/judgels-backends/judgels-grader-engines/src/integTest/java/judgels/gabriel/engines/functional/FunctionalWithSubtasksGradingEngineJavaIntegrationTests.java +++ b/judgels-backends/judgels-grader-engines/src/integTest/java/judgels/gabriel/engines/functional/FunctionalWithSubtasksGradingEngineJavaIntegrationTests.java @@ -50,18 +50,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))); @@ -80,16 +80,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( @@ -111,16 +111,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( diff --git a/judgels-backends/judgels-grader-engines/src/integTest/java/judgels/gabriel/engines/interactive/InteractiveWithSubtasksGradingEngineIntegrationTests.java b/judgels-backends/judgels-grader-engines/src/integTest/java/judgels/gabriel/engines/interactive/InteractiveWithSubtasksGradingEngineIntegrationTests.java index 331afe6e6..10962aa50 100644 --- a/judgels-backends/judgels-grader-engines/src/integTest/java/judgels/gabriel/engines/interactive/InteractiveWithSubtasksGradingEngineIntegrationTests.java +++ b/judgels-backends/judgels-grader-engines/src/integTest/java/judgels/gabriel/engines/interactive/InteractiveWithSubtasksGradingEngineIntegrationTests.java @@ -50,18 +50,18 @@ void ac() throws GradingException { ImmutableList.of( testGroupResult( 0, - testCaseResult(ACCEPTED, "✓ [8]", 0, 1, 2), - testCaseResult(ACCEPTED, "✓ [9]", 0, 1, 2), - testCaseResult(ACCEPTED, "✓ [10]", 0, 2)), + testCaseResult(ACCEPTED, "* [8]", 0, 1, 2), + testCaseResult(ACCEPTED, "* [9]", 0, 1, 2), + testCaseResult(ACCEPTED, "* [10]", 0, 2)), testGroupResult( 1, - testCaseResult(ACCEPTED, "✓ [9]", 1, 2), - testCaseResult(ACCEPTED, "✓ [10]", 1, 2)), + testCaseResult(ACCEPTED, "* [9]", 1, 2), + testCaseResult(ACCEPTED, "* [10]", 1, 2)), testGroupResult( 2, - testCaseResult(ACCEPTED, "✓ [10]", 2), - testCaseResult(ACCEPTED, "✓ [9]", 2), - testCaseResult(ACCEPTED, "✓ [1]", 2))), + testCaseResult(ACCEPTED, "* [10]", 2), + testCaseResult(ACCEPTED, "* [9]", 2), + testCaseResult(ACCEPTED, "* [1]", 2))), ImmutableList.of( subtaskResult(1, ACCEPTED, 30), subtaskResult(2, ACCEPTED, 70))); @@ -78,13 +78,13 @@ void wa_30() throws GradingException { ImmutableList.of( testGroupResult( 0, - testCaseResult(ACCEPTED, "✓ [3]", 0, 1, 2), - testCaseResult(ACCEPTED, "✓ [5]", 0, 1, 2), - testCaseResult(WRONG_ANSWER, "✕ [11]", 0, 2)), + testCaseResult(ACCEPTED, "* [3]", 0, 1, 2), + testCaseResult(ACCEPTED, "* [5]", 0, 1, 2), + testCaseResult(WRONG_ANSWER, "X [11]", 0, 2)), testGroupResult( 1, - testCaseResult(ACCEPTED, "✓ [1]", 1, 2), - testCaseResult(ACCEPTED, "✓ [8]", 1, 2)), + testCaseResult(ACCEPTED, "* [1]", 1, 2), + testCaseResult(ACCEPTED, "* [8]", 1, 2)), testGroupResult( 2, testCaseResult(SKIPPED, "?", Optional.empty(), 2), @@ -106,13 +106,13 @@ void rte_30() throws GradingException { ImmutableList.of( testGroupResult( 0, - testCaseResult(ACCEPTED, "✓ [3]", 0, 1, 2), - testCaseResult(ACCEPTED, "✓ [5]", 0, 1, 2), - testCaseResult(RUNTIME_ERROR, "✕", Optional.of(NONZERO_EXIT_CODE), 0, 2)), + testCaseResult(ACCEPTED, "* [3]", 0, 1, 2), + testCaseResult(ACCEPTED, "* [5]", 0, 1, 2), + testCaseResult(RUNTIME_ERROR, "X", Optional.of(NONZERO_EXIT_CODE), 0, 2)), testGroupResult( 1, - testCaseResult(ACCEPTED, "✓ [1]", 1, 2), - testCaseResult(ACCEPTED, "✓ [8]", 1, 2)), + testCaseResult(ACCEPTED, "* [1]", 1, 2), + testCaseResult(ACCEPTED, "* [8]", 1, 2)), testGroupResult( 2, testCaseResult(SKIPPED, "?", Optional.empty(), 2), diff --git a/judgels-backends/judgels-grader-engines/src/integTest/java/judgels/gabriel/engines/outputonly/OutputOnlyWithSubtasksGradingEngineIntegrationTests.java b/judgels-backends/judgels-grader-engines/src/integTest/java/judgels/gabriel/engines/outputonly/OutputOnlyWithSubtasksGradingEngineIntegrationTests.java index fdfe7cc33..1b1b89ea8 100644 --- a/judgels-backends/judgels-grader-engines/src/integTest/java/judgels/gabriel/engines/outputonly/OutputOnlyWithSubtasksGradingEngineIntegrationTests.java +++ b/judgels-backends/judgels-grader-engines/src/integTest/java/judgels/gabriel/engines/outputonly/OutputOnlyWithSubtasksGradingEngineIntegrationTests.java @@ -47,18 +47,18 @@ void ac() throws GradingException { ImmutableList.of( testGroupResult( 0, - testCaseResult(ACCEPTED, "✓", Optional.empty(), 0, 1, 2), - testCaseResult(ACCEPTED, "✓", Optional.empty(), 0, 1, 2), - testCaseResult(ACCEPTED, "✓", Optional.empty(), 0, 2)), + testCaseResult(ACCEPTED, "*", Optional.empty(), 0, 1, 2), + testCaseResult(ACCEPTED, "*", Optional.empty(), 0, 1, 2), + testCaseResult(ACCEPTED, "*", Optional.empty(), 0, 2)), testGroupResult( 1, - testCaseResult(ACCEPTED, "✓", Optional.empty(), 1, 2), - testCaseResult(ACCEPTED, "✓", Optional.empty(), 1, 2)), + testCaseResult(ACCEPTED, "*", Optional.empty(), 1, 2), + testCaseResult(ACCEPTED, "*", Optional.empty(), 1, 2)), testGroupResult( 2, - testCaseResult(ACCEPTED, "✓", Optional.empty(), 2), - testCaseResult(ACCEPTED, "✓", Optional.empty(), 2), - testCaseResult(ACCEPTED, "✓", Optional.empty(), 2))), + testCaseResult(ACCEPTED, "*", Optional.empty(), 2), + testCaseResult(ACCEPTED, "*", Optional.empty(), 2), + testCaseResult(ACCEPTED, "*", Optional.empty(), 2))), ImmutableList.of( subtaskResult(1, ACCEPTED, 30), subtaskResult(2, ACCEPTED, 70))); @@ -74,18 +74,18 @@ void wa_30() throws GradingException { ImmutableList.of( testGroupResult( 0, - testCaseResult(ACCEPTED, "✓", Optional.empty(), 0, 1, 2), - testCaseResult(ACCEPTED, "✓", Optional.empty(), 0, 1, 2), - testCaseResult(ACCEPTED, "✓", Optional.empty(), 0, 2)), + testCaseResult(ACCEPTED, "*", Optional.empty(), 0, 1, 2), + testCaseResult(ACCEPTED, "*", Optional.empty(), 0, 1, 2), + testCaseResult(ACCEPTED, "*", Optional.empty(), 0, 2)), testGroupResult( 1, - testCaseResult(ACCEPTED, "✓", Optional.empty(), 1, 2), - testCaseResult(ACCEPTED, "✓", Optional.empty(), 1, 2)), + testCaseResult(ACCEPTED, "*", Optional.empty(), 1, 2), + testCaseResult(ACCEPTED, "*", Optional.empty(), 1, 2)), testGroupResult( 2, - testCaseResult(ACCEPTED, "✓", Optional.empty(), 2), - testCaseResult(ACCEPTED, "✓", Optional.empty(), 2), - testCaseResult(WRONG_ANSWER, "✕", Optional.empty(), 2))), + testCaseResult(ACCEPTED, "*", Optional.empty(), 2), + testCaseResult(ACCEPTED, "*", Optional.empty(), 2), + testCaseResult(WRONG_ANSWER, "X", Optional.empty(), 2))), ImmutableList.of( subtaskResult(1, ACCEPTED, 30), subtaskResult(2, WRONG_ANSWER, 0))); @@ -101,13 +101,13 @@ void wa_30_at_sample() throws GradingException { ImmutableList.of( testGroupResult( 0, - testCaseResult(ACCEPTED, "✓", Optional.empty(), 0, 1, 2), - testCaseResult(ACCEPTED, "✓", Optional.empty(), 0, 1, 2), - testCaseResult(WRONG_ANSWER, "✕", Optional.empty(), 0, 2)), + testCaseResult(ACCEPTED, "*", Optional.empty(), 0, 1, 2), + testCaseResult(ACCEPTED, "*", Optional.empty(), 0, 1, 2), + testCaseResult(WRONG_ANSWER, "X", Optional.empty(), 0, 2)), testGroupResult( 1, - testCaseResult(ACCEPTED, "✓", Optional.empty(), 1, 2), - testCaseResult(ACCEPTED, "✓", Optional.empty(), 1, 2)), + testCaseResult(ACCEPTED, "*", Optional.empty(), 1, 2), + testCaseResult(ACCEPTED, "*", Optional.empty(), 1, 2)), testGroupResult( 2, testCaseResult(SKIPPED, "?", Optional.empty(), 2), @@ -128,17 +128,17 @@ void wa_30_because_some_files_missing() throws GradingException { ImmutableList.of( testGroupResult( 0, - testCaseResult(ACCEPTED, "✓", Optional.empty(), 0, 1, 2), - testCaseResult(ACCEPTED, "✓", Optional.empty(), 0, 1, 2), - testCaseResult(ACCEPTED, "✓", Optional.empty(), 0, 2)), + testCaseResult(ACCEPTED, "*", Optional.empty(), 0, 1, 2), + testCaseResult(ACCEPTED, "*", Optional.empty(), 0, 1, 2), + testCaseResult(ACCEPTED, "*", Optional.empty(), 0, 2)), testGroupResult( 1, - testCaseResult(ACCEPTED, "✓", Optional.empty(), 1, 2), - testCaseResult(ACCEPTED, "✓", Optional.empty(), 1, 2)), + testCaseResult(ACCEPTED, "*", Optional.empty(), 1, 2), + testCaseResult(ACCEPTED, "*", Optional.empty(), 1, 2)), testGroupResult( 2, - testCaseResult(ACCEPTED, "✓", Optional.empty(), 2), - testCaseResult(ACCEPTED, "✓", Optional.empty(), 2), + testCaseResult(ACCEPTED, "*", Optional.empty(), 2), + testCaseResult(ACCEPTED, "*", Optional.empty(), 2), testCaseResult(SKIPPED, "?", Optional.empty(), 2))), ImmutableList.of( subtaskResult(1, ACCEPTED, 30), @@ -155,12 +155,12 @@ void wa_0() throws GradingException { ImmutableList.of( testGroupResult( 0, - testCaseResult(ACCEPTED, "✓", Optional.empty(), 0, 1, 2), - testCaseResult(ACCEPTED, "✓", Optional.empty(), 0, 1, 2), - testCaseResult(ACCEPTED, "✓", Optional.empty(), 0, 2)), + testCaseResult(ACCEPTED, "*", Optional.empty(), 0, 1, 2), + testCaseResult(ACCEPTED, "*", Optional.empty(), 0, 1, 2), + testCaseResult(ACCEPTED, "*", Optional.empty(), 0, 2)), testGroupResult( 1, - testCaseResult(WRONG_ANSWER, "✕", Optional.empty(), 1, 2), + testCaseResult(WRONG_ANSWER, "X", Optional.empty(), 1, 2), testCaseResult(SKIPPED, "?", Optional.empty(), 1, 2)), testGroupResult( 2, @@ -183,18 +183,18 @@ void ac_with_custom_scorer() throws GradingException { ImmutableList.of( testGroupResult( 0, - testCaseResult(ACCEPTED, "✓", Optional.empty(), 0, 1, 2), - testCaseResult(ACCEPTED, "✓", Optional.empty(), 0, 1, 2), - testCaseResult(ACCEPTED, "✓", Optional.empty(), 0, 2)), + testCaseResult(ACCEPTED, "*", Optional.empty(), 0, 1, 2), + testCaseResult(ACCEPTED, "*", Optional.empty(), 0, 1, 2), + testCaseResult(ACCEPTED, "*", Optional.empty(), 0, 2)), testGroupResult( 1, - testCaseResult(ACCEPTED, "✓", Optional.empty(), 1, 2), - testCaseResult(ACCEPTED, "✓", Optional.empty(), 1, 2)), + testCaseResult(ACCEPTED, "*", Optional.empty(), 1, 2), + testCaseResult(ACCEPTED, "*", Optional.empty(), 1, 2)), testGroupResult( 2, - testCaseResult(ACCEPTED, "✓", Optional.empty(), 2), - testCaseResult(ACCEPTED, "✓", Optional.empty(), 2), - testCaseResult(ACCEPTED, "✓", Optional.empty(), 2))), + testCaseResult(ACCEPTED, "*", Optional.empty(), 2), + testCaseResult(ACCEPTED, "*", Optional.empty(), 2), + testCaseResult(ACCEPTED, "*", Optional.empty(), 2))), ImmutableList.of( subtaskResult(1, ACCEPTED, 30), subtaskResult(2, ACCEPTED, 70))); @@ -211,18 +211,18 @@ void wa_30_with_custom_scorer() throws GradingException { ImmutableList.of( testGroupResult( 0, - testCaseResult(ACCEPTED, "✓", Optional.empty(), 0, 1, 2), - testCaseResult(ACCEPTED, "✓", Optional.empty(), 0, 1, 2), - testCaseResult(ACCEPTED, "✓", Optional.empty(), 0, 2)), + testCaseResult(ACCEPTED, "*", Optional.empty(), 0, 1, 2), + testCaseResult(ACCEPTED, "*", Optional.empty(), 0, 1, 2), + testCaseResult(ACCEPTED, "*", Optional.empty(), 0, 2)), testGroupResult( 1, - testCaseResult(ACCEPTED, "✓", Optional.empty(), 1, 2), - testCaseResult(ACCEPTED, "✓", Optional.empty(), 1, 2)), + testCaseResult(ACCEPTED, "*", Optional.empty(), 1, 2), + testCaseResult(ACCEPTED, "*", Optional.empty(), 1, 2)), testGroupResult( 2, - testCaseResult(ACCEPTED, "✓", Optional.empty(), 2), - testCaseResult(ACCEPTED, "✓", Optional.empty(), 2), - testCaseResult(WRONG_ANSWER, "✕", Optional.empty(), 2))), + testCaseResult(ACCEPTED, "*", Optional.empty(), 2), + testCaseResult(ACCEPTED, "*", Optional.empty(), 2), + testCaseResult(WRONG_ANSWER, "X", Optional.empty(), 2))), ImmutableList.of( subtaskResult(1, ACCEPTED, 30), subtaskResult(2, WRONG_ANSWER, 0))); diff --git a/judgels-backends/judgels-grader-engines/src/main/java/judgels/gabriel/aggregators/MinAggregator.java b/judgels-backends/judgels-grader-engines/src/main/java/judgels/gabriel/aggregators/MinAggregator.java index 685135f03..8a70d6b8c 100644 --- a/judgels-backends/judgels-grader-engines/src/main/java/judgels/gabriel/aggregators/MinAggregator.java +++ b/judgels-backends/judgels-grader-engines/src/main/java/judgels/gabriel/aggregators/MinAggregator.java @@ -33,13 +33,13 @@ public AggregationResult aggregate(List testCaseVerdicts, doubl } aggregatedPoints = Math.min(aggregatedPoints, okPoints); } else if (verdict == Verdict.ACCEPTED) { - points = "✓"; + points = "*"; } else if (verdict == Verdict.SKIPPED) { aggregatedPoints = 0.0; points = "?"; } else { aggregatedPoints = 0.0; - points = "✕"; + points = "X"; } testCasePoints.add(points); diff --git a/judgels-backends/judgels-grader-engines/src/test/java/judgels/gabriel/aggregators/MinAggregatorTests.java b/judgels-backends/judgels-grader-engines/src/test/java/judgels/gabriel/aggregators/MinAggregatorTests.java index d3eb4a357..6b63f47b0 100644 --- a/judgels-backends/judgels-grader-engines/src/test/java/judgels/gabriel/aggregators/MinAggregatorTests.java +++ b/judgels-backends/judgels-grader-engines/src/test/java/judgels/gabriel/aggregators/MinAggregatorTests.java @@ -27,7 +27,7 @@ void aggregate_full_points() { AggregationResult result = aggregator.aggregate(testCaseVerdicts, 70.0); assertThat(result.getSubtaskVerdict()).isEqualTo(SubtaskVerdict.of(Verdict.ACCEPTED, 70.0)); - assertThat(result.getTestCasePoints()).containsExactly("✓", "✓"); + assertThat(result.getTestCasePoints()).containsExactly("*", "*"); } @Test @@ -39,7 +39,7 @@ void aggregate_zero_points() { AggregationResult result = aggregator.aggregate(testCaseVerdicts, 70.0); assertThat(result.getSubtaskVerdict()).isEqualTo(SubtaskVerdict.of(Verdict.RUNTIME_ERROR, 0.0)); - assertThat(result.getTestCasePoints()).containsExactly("✓", "✕", "✕"); + assertThat(result.getTestCasePoints()).containsExactly("*", "X", "X"); } @Test @@ -51,7 +51,7 @@ void aggregate_zero_points_with_skipped() { AggregationResult result = aggregator.aggregate(testCaseVerdicts, 70.0); assertThat(result.getSubtaskVerdict()).isEqualTo(SubtaskVerdict.of(Verdict.RUNTIME_ERROR, 0.0)); - assertThat(result.getTestCasePoints()).containsExactly("✓", "✕", "?"); + assertThat(result.getTestCasePoints()).containsExactly("*", "X", "?"); } @Test @@ -63,7 +63,7 @@ void aggregate_zero_points_with_accepted_and_skipped() { AggregationResult result = aggregator.aggregate(testCaseVerdicts, 70.0); assertThat(result.getSubtaskVerdict()).isEqualTo(SubtaskVerdict.of(Verdict.OK, 0.0)); - assertThat(result.getTestCasePoints()).containsExactly("✓", "✓", "?"); + assertThat(result.getTestCasePoints()).containsExactly("*", "*", "?"); } @Test @@ -75,7 +75,7 @@ void aggregate_min_ok_points() { AggregationResult result = aggregator.aggregate(testCaseVerdicts, 70.0); assertThat(result.getSubtaskVerdict()).isEqualTo(SubtaskVerdict.of(Verdict.OK, 20.5)); - assertThat(result.getTestCasePoints()).containsExactly("✓", "20.5", "30"); + assertThat(result.getTestCasePoints()).containsExactly("*", "20.5", "30"); } @Test @@ -87,7 +87,7 @@ void aggregate_min_ok_percentage() { AggregationResult result = aggregator.aggregate(testCaseVerdicts, 70.0); assertThat(result.getSubtaskVerdict()).isEqualTo(SubtaskVerdict.of(Verdict.OK, 8.75)); - assertThat(result.getTestCasePoints()).containsExactly("✓", "12.5%", "50%"); + assertThat(result.getTestCasePoints()).containsExactly("*", "12.5%", "50%"); } @Test