SequencesAreEqual

SequencesAreEqual

SequencesAreEqual A test that compares two iterable sequences element-by-element for equality. You can supply a custom item comparison function. Results include index mismatches. Inherits from TestBase.

Constructor

new SequencesAreEqual(testName, expected, actual, itemCompareropt, thisArgopt)

Description:
  • Compares two iterable sequences element by element.
Source:
Parameters:
Name Type Attributes Description
testName string Name of the test.
expected Iterable.<any> Expected sequence.
actual Iterable.<any> Actual sequence.
itemComparer function <optional>
Optional custom comparison function to compare individual items ((expected, actual) => boolean).
thisArg any <optional>
Optional `this` binding for the itemComparer.

Classes

SequencesAreEqual

Methods

runImpl() → {boolean}

Description:
  • Runs the test without printing.
Source:
Returns:
Whether the test passed.
Type
boolean