Add tags to Instantiation tests
This commit is contained in:
parent
b0e67d9f85
commit
8865af4878
1 changed files with 7 additions and 7 deletions
|
@ -23,12 +23,12 @@ void main() {
|
|||
() {
|
||||
Grid sut = Grid(3, 3);
|
||||
expect(sut.length, 9);
|
||||
});
|
||||
}, tags: const ["happy"]);
|
||||
test("gets created with the correct length for given rectangular gridsize",
|
||||
() {
|
||||
Grid sut = Grid(87, 85);
|
||||
expect(sut.length, 7395);
|
||||
});
|
||||
}, tags: const ["happy"]);
|
||||
test("copies the content of another grid on .from Constructor call", () {
|
||||
Grid original = Grid(2, 2);
|
||||
original[0] = "Hey";
|
||||
|
@ -38,7 +38,7 @@ void main() {
|
|||
|
||||
Grid sut = Grid.from(original);
|
||||
expect(sut, containsAllInOrder(["Hey", "you", "me", "together"]));
|
||||
});
|
||||
}, tags: const ["happy"]);
|
||||
test("copies the length of another grid on .from Constructor call", () {
|
||||
Grid original = Grid(2, 2);
|
||||
original[0] = "Hey";
|
||||
|
@ -48,26 +48,26 @@ void main() {
|
|||
|
||||
Grid sut = Grid.from(original);
|
||||
expect(sut.length, 4);
|
||||
});
|
||||
}, tags: const ["happy"]);
|
||||
test("sets the length for list passed in on .fromList Constructor call",
|
||||
() {
|
||||
Grid sut = Grid.fromList(l, 3);
|
||||
|
||||
expect(sut.length, 9);
|
||||
});
|
||||
}, tags: const ["happy"]);
|
||||
test("sets the contents of list passed in on .fromList Constructor call",
|
||||
() {
|
||||
Grid sut = Grid.fromList(l, 3);
|
||||
|
||||
expect(sut[3], "together");
|
||||
});
|
||||
}, tags: const ["happy"]);
|
||||
test(
|
||||
"sets the correct height for list passed in on .fromList Constructor call",
|
||||
() {
|
||||
Grid sut = Grid.fromList(l, 3);
|
||||
|
||||
expect(sut.width, 3);
|
||||
});
|
||||
}, tags: const ["happy"]);
|
||||
});
|
||||
group("getter", () {
|
||||
setUp(() {
|
||||
|
|
Loading…
Reference in a new issue