1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| import { minRectangle } from "../src/minRectangle";
describe("minRectangle", () => { it("should return 4000 for [[60, 50], [30, 70], [60, 30], [80, 40]]", () => { expect(minRectangle([[60, 50], [30, 70], [60, 30], [80, 40]])).toBe(4000); });
it("should return 120 for [[10, 7], [12, 3], [8, 15], [14, 7], [5, 15]]", () => { expect(minRectangle([[10, 7], [12, 3], [8, 15], [14, 7], [5, 15]])).toBe(120); });
it("should return 133 for [[14, 4], [19, 6], [6, 16], [18, 7], [7, 11]]", () => { expect(minRectangle([[14, 4], [19, 6], [6, 16], [18, 7], [7, 11]])).toBe(133); }); });
|