[ya-day1] tshortChooser prepare

This commit is contained in:
2024-10-27 23:50:47 +03:00
parent 7a566f2645
commit 17f0be347b
3 changed files with 19 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
import { tiShortChoser } from "./tiShortChoser";
export default tiShortChoser;
+8
View File
@@ -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]);
});
});
+8
View File
@@ -0,0 +1,8 @@
export function tiShortChoser(
tBlue: number,
tRed: number,
sBlue: number,
sRed: number,
) {
return [3, 4];
}