chore: rebase

pull/38/head
alestiago 4 years ago
parent fe4ad779ea
commit a5accacd37

@ -162,23 +162,15 @@ void main() {
expect(() => centroid([]), throwsAssertionError); expect(() => centroid([]), throwsAssertionError);
}); });
test( test('is correct when one vertex is given', () {
'is correct when one vertex is given',
() {
expect(centroid([Vector2.zero()]), Vector2.zero()); expect(centroid([Vector2.zero()]), Vector2.zero());
}, });
);
test( test('is correct when two vertex are given', () {
'is correct when two vertex are given',
() {
expect(centroid([Vector2.zero(), Vector2(1, 1)]), Vector2(0.5, 0.5)); expect(centroid([Vector2.zero(), Vector2(1, 1)]), Vector2(0.5, 0.5));
}, });
);
test( test('is correct when three vertex are given', () {
'is correct when three vertex are given',
() {
expect( expect(
centroid([ centroid([
Vector2.zero(), Vector2.zero(),
@ -187,7 +179,6 @@ void main() {
]), ]),
Vector2(1, 1), Vector2(1, 1),
); );
}, });
);
}); });
} }

Loading…
Cancel
Save