Skip to content

Commit 6388b1d

Browse files
authored
Update utils.test.js
1 parent 8829bdc commit 6388b1d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/utils.test.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,11 @@ describe('isSelfIntersecting', () => {
9292
test('Center', () => {
9393
expect(BuildingShapeUtils.center(rightTriangle)).toStrictEqual([0, 0]);
9494
});
95+
96+
test('Get Width', () => {
97+
expect(BuildingShapeUtils.getWidth(rightTriangle)).toBe(2);
98+
});
99+
100+
test('Vertex Angles', () => {
101+
expect(BuildingShapeUtils.vertexAngle(rightTriangle)).toStrictEqual([Math.PI / 2, Math.PI / 4, Math.PI / 4]);
102+
});

0 commit comments

Comments
 (0)