Skip to content

Commit

Permalink
fix: 테스트 조건 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
CFalws committed Aug 9, 2023
1 parent 7e735fd commit 233bd2c
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,14 @@ class StudyTest {
LocalDateTime endAt = currentRound.getEndAt();

// when
boolean actual = study.isCurrentRoundEndAt(endAt.toLocalDate());
boolean actual1 = study.isCurrentRoundEndAt(endAt.toLocalDate());
boolean actual2 = study.isCurrentRoundEndAt(endAt.plusDays(1).toLocalDate());

// then
assertThat(actual).isTrue();
assertAll(
() -> assertThat(actual1).isTrue(),
() -> assertThat(actual2).isTrue()
);
}

@Test
Expand All @@ -105,7 +109,7 @@ class StudyTest {
LocalDateTime endAt = currentRound.getEndAt();

// when
boolean actual = study.isCurrentRoundEndAt(endAt.plusDays(1).toLocalDate());
boolean actual = study.isCurrentRoundEndAt(endAt.minusDays(1).toLocalDate());

// then
assertThat(actual).isFalse();
Expand Down

0 comments on commit 233bd2c

Please sign in to comment.