Index

Functions

testAll

  • testAll(toTest: any, testcases: any): void
  • Test each case in testcases.

    Warning: if your function really accepts an array, that array must be double wrapped

    Parameters

    • toTest: any
    • testcases: any

    Returns void

testAllCustom

  • testAllCustom(toTest: any, testcases: any, expectAttr: any, expectArg: any): void
  • Test each case in testcases against an arbitrary expectAttr and eval'd Arg

    For eval:

    • ans is an array containing the result of the function
    • args is an array of input arguments to the function
    • toTest is the function you gave as input

    Parameters

    • toTest: any
    • testcases: any
    • expectAttr: any
    • expectArg: any

    Returns void

testAllNoError

  • testAllNoError(toTest: any, testcases: any): void
  • Call function with each testcase and check it doesn't throw

    Parameters

    • toTest: any
    • testcases: any

    Returns void

testAllObject

  • testAllObject(toTest: any, testcases: any): void
  • Parameters

    • toTest: any
    • testcases: any

    Returns void

wrapPrimitives

  • wrapPrimitives(testcases: any): any