testValues method

void testValues(
  1. List values,
  2. List expected, {
  3. String? info,
})

Test multiple Doubles

Implementation

void testValues(List<dynamic> values, List<dynamic> expected,
    {String? info}) {
  for (int i = 0; i < values.length; i++) {
    test(
        info != null
            ? info +
                ': Value: ' +
                expected[i].toString() +
                ' Expected: ' +
                values[i].toString()
            : 'Value: ' +
                expected[i].toString() +
                ' Expected: ' +
                values[i].toString(), () {
      expect(values[i], expected[i]);
    });
  }
}