Add tags to Instantiation tests

This commit is contained in:
Marty Oehme 2018-08-30 09:36:57 +02:00
parent b0e67d9f85
commit 8865af4878

View file

@ -23,12 +23,12 @@ void main() {
() { () {
Grid sut = Grid(3, 3); Grid sut = Grid(3, 3);
expect(sut.length, 9); expect(sut.length, 9);
}); }, tags: const ["happy"]);
test("gets created with the correct length for given rectangular gridsize", test("gets created with the correct length for given rectangular gridsize",
() { () {
Grid sut = Grid(87, 85); Grid sut = Grid(87, 85);
expect(sut.length, 7395); expect(sut.length, 7395);
}); }, tags: const ["happy"]);
test("copies the content of another grid on .from Constructor call", () { test("copies the content of another grid on .from Constructor call", () {
Grid original = Grid(2, 2); Grid original = Grid(2, 2);
original[0] = "Hey"; original[0] = "Hey";
@ -38,7 +38,7 @@ void main() {
Grid sut = Grid.from(original); Grid sut = Grid.from(original);
expect(sut, containsAllInOrder(["Hey", "you", "me", "together"])); expect(sut, containsAllInOrder(["Hey", "you", "me", "together"]));
}); }, tags: const ["happy"]);
test("copies the length of another grid on .from Constructor call", () { test("copies the length of another grid on .from Constructor call", () {
Grid original = Grid(2, 2); Grid original = Grid(2, 2);
original[0] = "Hey"; original[0] = "Hey";
@ -48,26 +48,26 @@ void main() {
Grid sut = Grid.from(original); Grid sut = Grid.from(original);
expect(sut.length, 4); expect(sut.length, 4);
}); }, tags: const ["happy"]);
test("sets the length for list passed in on .fromList Constructor call", test("sets the length for list passed in on .fromList Constructor call",
() { () {
Grid sut = Grid.fromList(l, 3); Grid sut = Grid.fromList(l, 3);
expect(sut.length, 9); expect(sut.length, 9);
}); }, tags: const ["happy"]);
test("sets the contents of list passed in on .fromList Constructor call", test("sets the contents of list passed in on .fromList Constructor call",
() { () {
Grid sut = Grid.fromList(l, 3); Grid sut = Grid.fromList(l, 3);
expect(sut[3], "together"); expect(sut[3], "together");
}); }, tags: const ["happy"]);
test( test(
"sets the correct height for list passed in on .fromList Constructor call", "sets the correct height for list passed in on .fromList Constructor call",
() { () {
Grid sut = Grid.fromList(l, 3); Grid sut = Grid.fromList(l, 3);
expect(sut.width, 3); expect(sut.width, 3);
}); }, tags: const ["happy"]);
}); });
group("getter", () { group("getter", () {
setUp(() { setUp(() {