Assertion Functions

Test functions in a test page set up as described are then free to use the following functions. In each case but the last the comment argument is optional.

Also, as a convenience, JsUnit provides a variable called JSUNIT_UNDEFINED_VALUE which is the JavaScript undefined value.

Note that JsUnit comes with several Test Pages (tests/jsUnitAssertionTests.html and tests/jsUnitUtilityTests.html) which test all of these test functions and other functions that the TestRunner uses.