Skip to content

Code runner gives errors

Teemu Johannes Vikøren requested to merge coderunner-errors into main

Closes #36 (closed)

Endret return types fra APIen slik:

type TestResult =
  | {
      kind: "Success";
    }
  | {
      kind: "Error";
      message: string;
    }
  | {
      kind: "FailedTests";
      differences: {
        expected: string;
        actual: string;
      }[];
    };

interface TestResults {
  totalTests: number;
  passedTests: number;
  executionTimeUs: number;
  results: TestResult[];
}

Eksempel request, Input:

image

Output:

image

Edited by Teemu Johannes Vikøren

Merge request reports

Loading