function createExpect(assertFunc) {
  return function() {
    try {
      assertFunc.apply(null, arguments);
    } catch (e) {
      errors.push(e);
      return false;
    }
    return true;
  };
}
/**
 * Creates a function based upon a function that throws an exception on
 * failure. The new function stuffs any errors into the |errors| array for
 * checking by runTest. This allows tests to continue running other checks,
 * while failing the overall test if any errors occurred.
 * @param {Function} assertFunc The function which may throw an Error.
 * @return {function(...*):bool} A function that applies its arguments to
 *     |assertFunc| and returns true if |assertFunc| passes.
 * @see errors
 * @see runTestFunction
 */
Creates a function based upon a function that throws an exception on
failure. The new function stuffs any errors into the |errors| array for
checking by runTest. This allows tests to continue running other checks,
while failing the overall test if any errors occurred.
@param {Function} assertFunc The function which may throw an Error.
@return {function(...*):bool} A function that applies its arguments to
|assertFunc| and returns true if |assertFunc| passes.
@see errors
@see runTestFunction
Creates a function based upon a function that throws an exception on failure . The new function stuffs any errors into the |errors| array for checking by runTest . This allows tests to continue running other checks while failing the overall test if any errors occurred . @param { Function } assertFunc The function which may throw an Error . @return { function ( ... * ) : bool } A function that applies its arguments to |assertFunc| and returns true if |assertFunc| passes . @see errors @see runTestFunction
function createExpect(assertFunc) {
  return function() {
    try {
      assertFunc.apply(null, arguments);
    } catch (e) {
      errors.push(e);
      return false;
    }
    return true;
  };
}
function createExpect ( assertFunc ) { return function ( ) { try { assertFunc . apply ( null , arguments ) ; } catch ( e ) { errors . push ( e ) ; return false ; } return true ; } ; }
Creates a function based upon a function that throws an exception on
 failure.
Creates a function based upon a function that throws an exception on failure .