Skip to content

Commit

Permalink
Small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
fushar committed Nov 13, 2016
1 parent e777fcb commit c90a168
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/tcframe/grader/BatchEvaluator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class BatchEvaluator : public Evaluator {
, logger_(logger) {}

optional<Verdict> evaluate(const TestCase& testCase, const GraderConfig& config) {
string inputFilename = config.testCasesDir() + "/" + testCase.id() + ".in";
string inputFilename = config.outputDir() + "/" + testCase.id() + ".in";

ExecutionRequestBuilder request = ExecutionRequestBuilder()
.setCommand(config.solutionCommand())
Expand Down
2 changes: 1 addition & 1 deletion include/tcframe/grader/DiffScorer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class DiffScorer : public Scorer {
, logger_(logger) {}

Verdict score(const TestCase& testCase, const GraderConfig& config) {
string outputFilename = config.testCasesDir() + "/" + testCase.id() + ".out";
string outputFilename = config.outputDir() + "/" + testCase.id() + ".out";

string briefDiffCommand = "diff --brief _evaluation.out " + outputFilename;
ExecutionResult briefResult = os_->execute(ExecutionRequestBuilder().setCommand(briefDiffCommand).build());
Expand Down
2 changes: 1 addition & 1 deletion include/tcframe/grader/GraderConfig.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class GraderConfig {
return solutionCommand_;
}

const string& testCasesDir() const {
const string& outputDir() const {
return outputDir_;
}

Expand Down

0 comments on commit c90a168

Please sign in to comment.