Platform (jvm, jdk8, js, android): jdk8
expect(LocalDate.now).day.toBe(3)
expect(LocalDate.now).day {
isLessThan(20)
...
}
expect(LocalDateTime.now).day.toBe(2019)
expect(LocalDateTime.now).day {
isLessThan(20)
...
}
expect(ZonedDateTime.now).day.toBe(2019)
expect(ZonedDateTime.now).day {
isLessThan(20)
...
}
//instead of
expect(LocaleDate.now).feature { f(it::dayOfMonth) }.toBe(3)
expect(LocaleDate.now).feature({ f(it::dayOfMonth) }) {
isLessThan(2020)
...
}
...
Following the things you need to do (same same but different for LocaleDateTime and ZonedDateTime):
domain
day (see CollectionAssertions.size as a guideline)lib
ExpectImpl.feature.manual (see collectionsAssertions -> size as a guideline)DAY("day") to DescriptionDateTimeLikeAssertion for en_GBDAY("Tag") to DescriptionDateTimeLikeAssertion for de_CHapi (fluent-en_GB/extensions/jdk8)
assertionCreator-lambda and returns ExpectI'll work on this if you would like to take this issue over.Hi @robstoll I'll work on this.
@ahmadrosid I forgot to merge the preparation for this task. Could you please rebase onto master (or delete the fork and fork again)
Yes @robstoll no problem. I will fork again.
@ahmadrosid please rebase on master (in case you haven't done this before: https://github.com/edx/edx-platform/wiki/How-to-Rebase-a-Pull-Request). The shortcut for year was added by now (you might want to have a look at the pull request #182 in case you are stuck).
@ahmadrosid do you need any help?
I'll work on this?
@leelanakka I am not entirely sure if @ahmadrosid has given up or is still working on it. You can start as well though. In the worst case you are doing the same.
@leelanakka do you need any help? I un-assign you again, so that others can take up if they like. Write here so that others know that you still work on it.
I've pushed the code, can you reassign that to me?
let me know in case anything needs to be done
@robstoll I am working on it. Will raise PR soon.
Implemented with #275