Skip to content

Commit

Permalink
만료일이 한 달 뒤인 경우 마무리 - #19
Browse files Browse the repository at this point in the history
두 달 또는 세 달 뒤가 만료일인 예외는 새로운 것을 추가해야함.
그렇기 때문에 한 달 뒤가 만료일인 경우의 예외 케이스를 먼저 마무리
  • Loading branch information
hou27 committed Jan 12, 2023
1 parent 432de5b commit 5db59c7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,8 @@ private void assertExpiryDate(LocalDate billingDate, int payAmount, LocalDate ex
@Test
void 납부일과_한달__일자가_같지_않음() {
assertExpiryDate(LocalDate.of(2019, 1, 31), 10_000, LocalDate.of(2019, 2, 28));
assertExpiryDate(LocalDate.of(2019, 5, 31), 10_000, LocalDate.of(2019, 6, 30));
assertExpiryDate(LocalDate.of(2020, 1, 31), 10_000, LocalDate.of(2020, 2, 29));
assertExpiryDate(LocalDate.of(2020, 5, 31), 10_000, LocalDate.of(2020, 6, 30));
}
}

0 comments on commit 5db59c7

Please sign in to comment.