[ya-day1] tshortChooser prepare
parent
7a566f2645
commit
17f0be347b
@ -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];
|
||||
}
|
||||
Loading…
Reference in New Issue