Type Alias TestCase

TestCase: {
    expectedResult?: string;
    notes?: string;
    source: TclListable;
}

Type declaration

  • OptionalexpectedResult?: string

    The expected result.

    If our output matches this exactly, the test passes. If out output differs from this, the test fails. If this is missing, the test will just print the result on the console, without judgement.

  • Optionalnotes?: string

    A human readable description of the test case.

  • source: TclListable

    A valid list item.

    This test focuses on individual list items, because assembling the items after they have been quoted is trivial. However, source can be an array, which we will turn into a TCL list.