eXparity / hamcrest-date

A Java library which provides a suite hamcrest matchers for matching dates, times, and moments in time
BSD 3-Clause "New" or "Revised" License
70 stars 11 forks source link

sameDate Matcher does only exist in the Readme #9

Closed dedeibel closed 10 years ago

dedeibel commented 10 years ago

Hi,

I was looking for this matcher but it only exists in the readme.

MatcherAssert.assertThat(today, DateMatchers.sameDate(myBirthday));

Could you please tell me which part is wrong or how to get the same functionality?

Is this the same functionality?

assertThat(today, within(0, DAY, myBirthday));

Thanks, Ben.

stewbis commented 10 years ago

Hi Ben, Sorry for the delay updating - the README.md should have said sameDay() e.g.

MatcherAssert.assertThat(today, DateMatchers.sameDay(myBirthday));

I've update the readme.

Thanks

Stewart