Add tests for CellPattern & GameOfLife classes
This commit is contained in:
parent
8afb45e33e
commit
2993b33d9e
3 changed files with 55 additions and 2 deletions
|
|
@ -1,10 +1,17 @@
|
|||
import 'dart:math';
|
||||
|
||||
import 'package:collection/collection.dart';
|
||||
|
||||
class CellPattern<Point> extends DelegatingList<Point> {
|
||||
class CellPattern extends DelegatingList<Point> {
|
||||
final String _name;
|
||||
CellPattern(String name, List base)
|
||||
CellPattern(String name, List<Point> base)
|
||||
: _name = name,
|
||||
super(base);
|
||||
|
||||
String get name => _name;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return "$name: ${super.toString()}";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue