diff --git "a/level-01/1.2-\355\231\200\354\247\235\355\214\220\353\263\204/solution.test.ts" "b/level-01/1.2-\355\231\200\354\247\235\355\214\220\353\263\204/solution.test.ts" deleted file mode 100644 index 2aaa447..0000000 --- "a/level-01/1.2-\355\231\200\354\247\235\355\214\220\353\263\204/solution.test.ts" +++ /dev/null @@ -1,24 +0,0 @@ -import { describe, it, expect } from "vitest"; -import { solution } from "./solution"; - -describe("1.2 홀짝 판별", () => { - it("홀수를 판별한다", () => { - expect(solution(3)).toBe("홀수"); - }); - - it("짝수를 판별한다", () => { - expect(solution(4)).toBe("짝수"); - }); - - it("0은 짝수로 판별한다", () => { - expect(solution(0)).toBe("짝수"); - }); - - it("음수 홀수도 판별한다", () => { - expect(solution(-7)).toBe("홀수"); - }); - - it("음수 짝수도 판별한다", () => { - expect(solution(-4)).toBe("짝수"); - }); -}); diff --git "a/level-01/1.2-\355\231\200\354\247\235\355\214\220\353\263\204/solution.ts" "b/level-01/1.2-\355\231\200\354\247\235\355\214\220\353\263\204/solution.ts" deleted file mode 100644 index eaf74d1..0000000 --- "a/level-01/1.2-\355\231\200\354\247\235\355\214\220\353\263\204/solution.ts" +++ /dev/null @@ -1,12 +0,0 @@ -/** - * 1.2 홀짝 판별 [프로그래머스 Lv0 / 백준 Bronze V] - * - * 정수 n이 홀수면 "홀수", 짝수면 "짝수"를 반환하세요. (0은 짝수) - * - * @example - * solution(3) // => "홀수" - */ -export function solution(n: number): "홀수" | "짝수" { - // TODO: 구현하세요 - throw new Error("아직 구현되지 않았습니다"); -}