function assertParsedTimeEquals(
    expectHour, expectMin, expectSec, expectMilli, parser, text, options) {
  const date = new Date(0);

  assertEquals(
      options?.partial ?? text.length, parser.parse(text, date, options));
  assertTimeEquals(expectHour, expectMin, expectSec, expectMilli, date);
}
Parses and asserts that the result has the expected values.
@param {number} expectHour
@param {number} expectMin
@param {number|undefined} expectSec
@param {number|undefined} expectMilli
@param {!DateTimeParse} parser
@param {string} text
@param {!AssertParseOptions=} options