hasLength method

void hasLength(
  1. int length
)

Checks that the tested iterable has the good length.

Implementation

void hasLength(int length) {
  test.expect(value, test.hasLength(length));
}