Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ShouldBeToday matcher #820

Closed
LeoColman opened this issue Jun 10, 2019 · 0 comments
Closed

ShouldBeToday matcher #820

LeoColman opened this issue Jun 10, 2019 · 0 comments
Labels
enhancement ✨ Suggestions for adding new features or improving existing ones. good-first-issue 👶 Suitable for newcomers looking to contribute to the project.
Milestone

Comments

@LeoColman
Copy link
Member

Sometimes we want to verify it a specific date/DateTime is today's date. For example when registering a Database Entity with a Creation Date (set to now).

LocalDateTime.now().shouldBeToday()

LocalDate.now().shouldBeToday()

This can be added to kotlintest-assertions module, to the package io.kotlintest.matchers.date.

You can add one method for each possible implementation, or create a generic one if you find a way.

A tip for the generic one may be in #693 .

@LeoColman LeoColman added enhancement ✨ Suggestions for adding new features or improving existing ones. help wanted good-first-issue 👶 Suitable for newcomers looking to contribute to the project. and removed help wanted labels Jun 10, 2019
@sksamuel sksamuel added this to the 3.4 milestone Jun 12, 2019
@sksamuel sksamuel mentioned this issue Jun 12, 2019
39 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ✨ Suggestions for adding new features or improving existing ones. good-first-issue 👶 Suitable for newcomers looking to contribute to the project.
Projects
None yet
Development

No branches or pull requests

2 participants