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

ChronoLocalDate(Time) and ChronoZonedDateTime.isEqual #290

Closed
robstoll opened this issue Jan 4, 2020 · 1 comment
Closed

ChronoLocalDate(Time) and ChronoZonedDateTime.isEqual #290

robstoll opened this issue Jan 4, 2020 · 1 comment
Assignees
Labels
Milestone

Comments

@robstoll
Copy link
Owner

robstoll commented Jan 4, 2020

Platform (jvm, js, android): jvm
Extension (none, kotlin 1.3, jdk8): jdk8

Code related feature

expect(LocalDate.now()).isEqual(JapaneseDate.now())

Following the things you need to do (same same but different for ChronoLocalDateTime<out ChronoLocalDate> and ChronoZonedDateTime<out ChronoLocalDate>

domain-lib

  • add _isEqual to chronoLocalDateAssertions.kt by using ExpectImpl.builder.createDescriptive(... (see other functions)

    • add SAME_DAY("is the same day as") to DescriptionDateTimeLikeAssertion for en_GB
    • add SAME_DAY("ist derselbe Tag wie") to DescriptionDateTimeLikeAssertion for de_CH
  • use the following as description for ChronoLocalDateTime and ChronoZonedDateTime

    • add IS_EQUAL_TO("is equal to") to DescriptionDateTimeLikeAssertion for en_GB
    • add IS_EQUAL_TO("ist gleichzeitig wie") to DescriptionDateTimeLikeAssertion for de_CH

domain

  • add isEqual to ChronoLocalDateAssertions (see other functions as a guideline)
  • modify ChronoLocalDateAssertionsBuilder, delegate to chronoLocalDateAssertions (see other functions as a guideline)
  • delegate implementation to robstoll-lib in ChronoLocalDateAssertionsImpl (see other functions as a guideline)

api

  • provide a fun isEqual which expects a ChronoLocalDate (see other functions as a guideline)
  • add @since 0.9.0 (adopt to next release version) to KDOC of val and fun
  • cover new functionality in ChronoLocalDateAssertionsSpec in specs-jvm and extend it in atrium-api-fluent-en_GB-common/src/test

Your first contribution?

  • Write a comment I'll work on this if you would like to take this issue over.
    This way we get the chance to revise the description in case things have changed in the meantime,
    we might give you additional hints and we can assign the task to you, so that others do not start as well.
  • See Your first code contribution for guidelines.
  • Do not hesitate to ask questions here or to contact us via Atrium's slack channel if you need help
    (Invite yourself in case you do not have an account yet).
@robstoll robstoll changed the title ChronoLocalDate(Time) and ChronoZonedDateTime.isEquals ChronoLocalDate(Time) and ChronoZonedDateTime.isEqual Jan 4, 2020
@ivanmiklec ivanmiklec self-assigned this Jan 7, 2020
@robstoll robstoll added this to the 0.9.0 milestone Jan 14, 2020
@robstoll
Copy link
Owner Author

implemented with 48c4e91

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants