assertCellAt method

void assertCellAt(
  1. int x,
  2. int y,
  3. String expected
)

Implementation

void assertCellAt(int x, int y, String expected) {
  final actual = cellAt(x, y);
  if (actual != expected) {
    throw AssertionError(
      'Cell at ($x, $y) does not match:\n  Expected: "$expected"\n  Actual:   "$actual"',
    );
  }
}