MCPcopy Create free account
hub / github.com/Project-LemonLime/Project_LemonLime / compareWithDiff

Method compareWithDiff

src/core/judgingthread.cpp:317–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315}
316
317void JudgingThread::compareWithDiff(const QString &contestantOutput) {
318 QString cmd = diffPath;
319 QStringList cmdArgs =
320 (QStringList(task->getDiffArguments())
321 << QFileInfo(outputFile).absoluteFilePath().replace('/', QDir::separator()) << contestantOutput);
322
323 if (QProcess::execute(cmd, cmdArgs) != 0) {
324 score = 0;
325 result = WrongAnswer;
326 } else {
327 score = fullScore;
328 result = CorrectAnswer;
329 }
330}
331
332void JudgingThread::compareRealNumbers(const QString &contestantOutput) {
333 FILE *contestantOutputFile = fopen(contestantOutput.toLocal8Bit().data(), "r");

Callers

nothing calls this directly

Calls 1

getDiffArgumentsMethod · 0.80

Tested by

no test coverage detected