test/intl/assert.js
/**
 * Throws an exception containing the user_message (if any) and the values.
 */
Throws an exception containing the user_message (if any) and the values.
Throws an exception containing the user_message ( if any ) and the values .
function fail(expected, found, user_message = '') {
  var message = 'Failure' + (user_message ? ' (' + user_message + ')' : '') +
      ': expected <' + String(expected) + '>, found <' + String(found) + '>.';
  throw new Error(message);
}
function fail ( expected , found , user_message = '' ) { var message = 'Failure' + ( user_message ? ' (' + user_message + ')' : '' ) + ': expected <' + String ( expected ) + '>, found <' + String ( found ) + '>.' ; throw new Error ( message ) ; }
Throws an exception containing the user_message (if any) and the values.
Throws an exception containing the user_message ( if any ) and the values .
// TODO(cira): Replace String with PrettyPrint for objects and arrays.