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.
15 lines
369 B
TypeScript
15 lines
369 B
TypeScript
import { describe, it, expect } from "vitest";
|
|
import { twoSumHashTable } from "./twoSumHashTable.ts";
|
|
|
|
describe("twoSumHashTable", () => {
|
|
let sortedArray = [-12, 1, 4, 6, 22];
|
|
|
|
it("twoSumHashTable", () => {
|
|
expect(twoSumHashTable(sortedArray, 4)).toBe(2);
|
|
});
|
|
|
|
it("twoSumHashTable", () => {
|
|
expect(twoSumHashTable(sortedArray, 3)).toBe(-1);
|
|
});
|
|
});
|