diff --git a/lib/tiShortChoser/index.ts b/lib/tiShortChoser/index.ts new file mode 100644 index 0000000..4e8c2bc --- /dev/null +++ b/lib/tiShortChoser/index.ts @@ -0,0 +1,3 @@ +import { tiShortChoser } from "./tiShortChoser"; + +export default tiShortChoser; diff --git a/lib/tiShortChoser/tiShortChoser.test.ts b/lib/tiShortChoser/tiShortChoser.test.ts new file mode 100644 index 0000000..00439c3 --- /dev/null +++ b/lib/tiShortChoser/tiShortChoser.test.ts @@ -0,0 +1,8 @@ +import { describe, it, expect } from "vitest"; +import { tiShortChoser } from "./tiShortChoser.ts"; + +describe("tiShortChoser", () => { + it("tiShortChoser 6, 2, 7, 3", () => { + expect(tiShortChoser(6, 2, 7, 3)).toEqual([3, 4]); + }); +}); diff --git a/lib/tiShortChoser/tiShortChoser.ts b/lib/tiShortChoser/tiShortChoser.ts new file mode 100644 index 0000000..a3e0b04 --- /dev/null +++ b/lib/tiShortChoser/tiShortChoser.ts @@ -0,0 +1,8 @@ +export function tiShortChoser( + tBlue: number, + tRed: number, + sBlue: number, + sRed: number, +) { + return [3, 4]; +}