# 실전: AI 테스트도 같은 버그를 승인했다

> 구현에서 독립된 oracle을 다시 설계합니다.

- Canonical: https://learning.reopt.ai/courses/ai-code-quality/lessons/cq-m2-scenario
- Language: ko-KR
- HTML: https://learning.reopt.ai/courses/ai-code-quality/lessons/cq-m2-scenario

---

[AI 코드 품질·검증·디버깅](/courses/ai-code-quality) 2. 독립된 Test Oracle 4 / 9

# 실전: AI 테스트도 같은 버그를 승인했다

구현에서 독립된 oracle을 다시 설계합니다.
시나리오 60 XP 8분

AI가 할인 계산 코드와 unit test를 함께 작성했고 모두 통과했지만 특정 국가에서 세금이 두 번 차감됐습니다.
상황 배경 테스트 expected value는 구현 공식을 그대로 복사해 계산합니다. 결정 1 / 2

가장 먼저 바꿀 테스트 전략은?
같은 unit test를 더 많이 생성한다 세금·할인 불변식과 승인된 reference 사례로 property·differential test를 만든다 Snapshot을 크게 갱신한다

---

에이전트용 사이트 안내: https://learning.reopt.ai/llms.txt · 사이트맵: https://learning.reopt.ai/sitemap.xml · 문의: https://learning.reopt.ai/contact
