• Prints whether the test passed or failed, along with the name of the test method; if the test failed, prints the reason and if ABORT_ON_FAIL is true throws an Error.

    Some tests reproduce errors which need to be fixed. To make these visible, any test whose name includes the word 'error' is printed with the 'warning' highlighting.


    • passed: boolean

      whether the test passed

    • testType: string

      type of test (variables, energy, number of collisions, etc.)

    • Optional reason: string

      why the test failed: a string giving details of test results, or null

    Returns void


    if passed is false and ABORT_ON_FAIL is true

Generated using TypeDoc