Class: AbstractTestResult

(abstract) AbstractTestResult(caseName, algorithm, actualnullable, verdict)

Abstract superclass for all individual test results.

Constructor

(abstract) new AbstractTestResult(caseName, algorithm, actualnullable, verdict)

Construct a new AbstractTestResult instance.
Parameters:
Name Type Attributes Description
caseName String The name (or ID) of the test case.
algorithm String The name of the algorithm that produced this result.
actual AbstractActual <nullable>
The actual result produced by the algorithm. Null indicates failure.
verdict String The verdict for this test case.
Source:

Classes

AbstractTestResult

Members

(constant, nullable) actual :AbstractActual

The actual result produced by the algorithm. Null indicates failure.
Type:
Source:

(constant) algorithm :String

The name of the algorithm that produced this result.
Type:
  • String
Source:

(constant) caseName :String

The name (or ID) of the test case.
Type:
  • String
Source:

(constant) verdict :String

The verdict for this test case.
Type:
  • String
Source:

VERDICTS :Object

Enum for all possible test case verdicts.
Type:
  • Object
Source:

Methods

isOk() → {Boolean}

Source:
Returns:
If this test result indicates success.
Type
Boolean

isTimeOut() → {Boolean}

Source:
Returns:
If this test result indicates a timeout.
Type
Boolean

isWrongAnswer() → {Boolean}

Source:
Returns:
If this test result indicates a wrong answer.
Type
Boolean