diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/domains/box-test.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/domains/box-test.ts b/test/domains/box-test.ts index cb930a0..248ae38 100644 --- a/test/domains/box-test.ts +++ b/test/domains/box-test.ts @@ -5,6 +5,8 @@ import { centreOf } from "../../src/domains/box"; describe("box centre", () => { test("computes the centre from a content quad", () => { const b = centreOf({ content: [10, 20, 110, 20, 110, 70, 10, 70], width: 100, height: 50 }); + assert.equal(b.x, 10); + assert.equal(b.y, 20); assert.equal(b.cx, 60); assert.equal(b.cy, 45); assert.equal(b.width, 100); |
