[ya-day1] tshortChooser prepare
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
import { tiShortChoser } from "./tiShortChoser";
|
||||||
|
|
||||||
|
export default tiShortChoser;
|
||||||
@@ -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]);
|
||||||
|
});
|
||||||
|
});
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
export function tiShortChoser(
|
||||||
|
tBlue: number,
|
||||||
|
tRed: number,
|
||||||
|
sBlue: number,
|
||||||
|
sRed: number,
|
||||||
|
) {
|
||||||
|
return [3, 4];
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user