From ac1dfedc6163e25233f66146caa2ce057286957a Mon Sep 17 00:00:00 2001 From: lee0802-120 Date: Mon, 20 Jul 2026 10:25:03 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9D=B4=EC=A4=80=EC=84=9D=20=EC=A0=9C?= =?UTF-8?q?=EC=B6=9C=ED=95=A9=EB=8B=88=EB=8B=A4.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../solution.test.ts" | 16 --------------- .../solution.ts" | 20 ------------------- 2 files changed, 36 deletions(-) delete mode 100644 "level-01/1.1-\354\202\254\354\271\231\354\227\260\354\202\260/solution.test.ts" delete mode 100644 "level-01/1.1-\354\202\254\354\271\231\354\227\260\354\202\260/solution.ts" diff --git "a/level-01/1.1-\354\202\254\354\271\231\354\227\260\354\202\260/solution.test.ts" "b/level-01/1.1-\354\202\254\354\271\231\354\227\260\354\202\260/solution.test.ts" deleted file mode 100644 index e544457..0000000 --- "a/level-01/1.1-\354\202\254\354\271\231\354\227\260\354\202\260/solution.test.ts" +++ /dev/null @@ -1,16 +0,0 @@ -import { describe, it, expect } from "vitest"; -import { solution } from "./solution"; - -describe("1.1 사칙연산", () => { - it("기본 사칙연산", () => { - expect(solution(7, 2)).toEqual({ add: 9, sub: 5, mul: 14, div: 3 }); - }); - - it("음수가 섞인 경우 몫은 0 방향으로 버린다", () => { - expect(solution(-7, 2)).toEqual({ add: -5, sub: -9, mul: -14, div: -3 }); - }); - - it("나누어떨어지는 경우", () => { - expect(solution(10, 5)).toEqual({ add: 15, sub: 5, mul: 50, div: 2 }); - }); -}); diff --git "a/level-01/1.1-\354\202\254\354\271\231\354\227\260\354\202\260/solution.ts" "b/level-01/1.1-\354\202\254\354\271\231\354\227\260\354\202\260/solution.ts" deleted file mode 100644 index 0d8700d..0000000 --- "a/level-01/1.1-\354\202\254\354\271\231\354\227\260\354\202\260/solution.ts" +++ /dev/null @@ -1,20 +0,0 @@ -/** - * 1.1 사칙연산 [프로그래머스 Lv0 / 백준 Bronze V] - * - * 두 정수 a, b의 합(add)·차(sub)·곱(mul)·몫(div)을 객체로 반환하세요. - * 몫은 0 방향으로 버림한 정수입니다. b는 0이 아님이 보장됩니다. - * - * @example - * solution(7, 2) // => { add: 9, sub: 5, mul: 14, div: 3 } - */ -export interface ArithmeticResult { - add: number; - sub: number; - mul: number; - div: number; -} - -export function solution(a: number, b: number): ArithmeticResult { - // TODO: 구현하세요 - throw new Error("아직 구현되지 않았습니다"); -}