diff --git a/documentation/docs/assertions/core.md b/documentation/docs/assertions/core.md index a5c1c8136f7..239cabd176e 100644 --- a/documentation/docs/assertions/core.md +++ b/documentation/docs/assertions/core.md @@ -187,26 +187,26 @@ Matchers provided by the `kotest-assertions-core` module. | `file.shouldBeSymbolicLink()` | Asserts that the file is a symbolic link. | | `file.shouldHaveParent(name)` | Assert that the file has a parent with the given name | -| Dates || -|-----------------------------------------------|--------------------------------------------------------- Asserts that the date has the same year as the given date. -----------------| -| `date.shouldHaveSameYearAs(otherDate)` | Asserts that the date has the same year as the given date. | -| `date.shouldHaveSameMonthAs(otherDate)` | Asserts that the date has the same month as the given date. | -| `date.shouldHaveSameDayAs(otherDate)` | Asserts that the date has the same day of the month as the given date. | -| `date.shouldBeBefore(otherDate)` | Asserts that the date is before the given date. | -| `date.shouldBeAfter(otherDate)` | Asserts that the date is after the given date. | -| `date.shouldBeWithin(period, otherDate)` | Asserts that the date is within the period of the given date. | -| `date.shouldBeWithin(duration, otherDate)` | Asserts that the date is within the duration of the given date. | -| `date.shouldBeBetween(firstDate, secondDate)` | Asserts that the date is between firstdate and seconddate. | -| `date.shouldHaveYear(year)` | Asserts that the date have correct year. | -| `date.shouldHaveMonth(month)` | Asserts that the date have correct month. | -| `date.shouldHaveDayOfYear(day)` | Asserts that the date have correct day of year. | -| `date.shouldHaveDayOfMonth(day)` | Asserts that the date have correct day of month. | -| `date.shouldHaveDayOfWeek(day)` | Asserts that the date have correct day of week. | -| `date.shouldHaveHour(hour)` | Asserts that the date have correct hour. | -| `date.shouldHaveMinute(Minute)` | Asserts that the date have correct minute. | -| `date.shouldHaveSecond(second)` | Asserts that the date have correct second. | -| `date.shouldHaveNano(nao)` | Asserts that the date have correct nano second. | -| `date.shouldBe(value plusOrMinus(tolerance))` | Asserts that the date is equal to the given value within a tolerance range of duration. | +| Dates | | +|-----------------------------------------------|-----------------------------------------------------------------------------------------| +| `date.shouldHaveSameYearAs(otherDate)` | Asserts that the date has the same year as the given date. | +| `date.shouldHaveSameMonthAs(otherDate)` | Asserts that the date has the same month as the given date. | +| `date.shouldHaveSameDayAs(otherDate)` | Asserts that the date has the same day of the month as the given date. | +| `date.shouldBeBefore(otherDate)` | Asserts that the date is before the given date. | +| `date.shouldBeAfter(otherDate)` | Asserts that the date is after the given date. | +| `date.shouldBeWithin(period, otherDate)` | Asserts that the date is within the period of the given date. | +| `date.shouldBeWithin(duration, otherDate)` | Asserts that the date is within the duration of the given date. | +| `date.shouldBeBetween(firstDate, secondDate)` | Asserts that the date is between firstdate and seconddate. | +| `date.shouldHaveYear(year)` | Asserts that the date have correct year. | +| `date.shouldHaveMonth(month)` | Asserts that the date have correct month. | +| `date.shouldHaveDayOfYear(day)` | Asserts that the date have correct day of year. | +| `date.shouldHaveDayOfMonth(day)` | Asserts that the date have correct day of month. | +| `date.shouldHaveDayOfWeek(day)` | Asserts that the date have correct day of week. | +| `date.shouldHaveHour(hour)` | Asserts that the date have correct hour. | +| `date.shouldHaveMinute(Minute)` | Asserts that the date have correct minute. | +| `date.shouldHaveSecond(second)` | Asserts that the date have correct second. | +| `date.shouldHaveNano(nao)` | Asserts that the date have correct nano second. | +| `date.shouldBe(value plusOrMinus(tolerance))` | Asserts that the date is equal to the given value within a tolerance range of duration. | | ZonedDateTime || |----------------------------------------------------------------------| ---- | diff --git a/documentation/versioned_docs/version-5.9/assertions/core.md b/documentation/versioned_docs/version-5.9/assertions/core.md index a5c1c8136f7..e6c3dfc4dc1 100644 --- a/documentation/versioned_docs/version-5.9/assertions/core.md +++ b/documentation/versioned_docs/version-5.9/assertions/core.md @@ -188,7 +188,7 @@ Matchers provided by the `kotest-assertions-core` module. | `file.shouldHaveParent(name)` | Assert that the file has a parent with the given name | | Dates || -|-----------------------------------------------|--------------------------------------------------------- Asserts that the date has the same year as the given date. -----------------| +|-----------------------------------------------|--------------------------------------------------------------------------| | `date.shouldHaveSameYearAs(otherDate)` | Asserts that the date has the same year as the given date. | | `date.shouldHaveSameMonthAs(otherDate)` | Asserts that the date has the same month as the given date. | | `date.shouldHaveSameDayAs(otherDate)` | Asserts that the date has the same day of the month as the given date. |