From 17f0be347b06b46f03b3b28f60edda08eab8bb2f Mon Sep 17 00:00:00 2001 From: Vasily Guzov Date: Sun, 27 Oct 2024 23:50:47 +0300 Subject: [PATCH] [ya-day1] tshortChooser prepare --- lib/tiShortChoser/index.ts | 3 +++ lib/tiShortChoser/tiShortChoser.test.ts | 8 ++++++++ lib/tiShortChoser/tiShortChoser.ts | 8 ++++++++ 3 files changed, 19 insertions(+) create mode 100644 lib/tiShortChoser/index.ts create mode 100644 lib/tiShortChoser/tiShortChoser.test.ts create mode 100644 lib/tiShortChoser/tiShortChoser.ts 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]; +}