Constructor
(abstract) new AbstractTestCase(name, expected)
Create a new AbstractTestCase instance.
Parameters:
Name | Type | Description |
---|---|---|
name |
String | The name of this test case |
expected |
AbstractExpected | The expected result for this test case |
- Source:
Classes
Members
(constant) expected :AbstractExpected
The expected result.
Type:
- Source:
(constant) name :String
The name of the this test case.
Type:
- String
- Source:
Methods
(abstract, static) from(testCaseDir) → {AbstractTestCase}
Construct a diff test case from a test case directory.
Parameters:
Name | Type | Description |
---|---|---|
testCaseDir |
String | An absolute or relative path to the test case directory |
- Source:
Returns:
The constructed test case
- Type
- AbstractTestCase
(abstract) complete(algorithm, actualnullable, verdict) → {AbstractTestResult}
Complete this test case.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
algorithm |
String | The algorithm that ran this case. | |
actual |
AbstractActual |
<nullable> |
The actual output. Null indicates failure. |
verdict |
String | The verdict for this test case and algorithm. |
- Source:
Returns:
The corresponding result.
- Type
- AbstractTestResult