You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
299 B
TypeScript
14 lines
299 B
TypeScript
import { describe, it, expect } from "vitest";
|
|
import { maxArea } from "./maxArea.ts";
|
|
|
|
describe("maxArea", () => {
|
|
|
|
it("[1,8,6,2,5,4,8,3,7] => 49", () => {
|
|
expect(maxArea([1, 8, 6, 2, 5, 4, 8, 3, 7])).toBe(49);
|
|
});
|
|
|
|
it("[1,1] => 1", () => {
|
|
expect(maxArea([1, 1])).toBe(1);
|
|
});
|
|
});
|