Skip to content

Commit

Permalink
robstoll#481 fixed error on MR
Browse files Browse the repository at this point in the history
  • Loading branch information
rkiselev committed Jul 12, 2020
1 parent 902194e commit c43e808
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ fun <T : ChronoLocalDateTime<*>> _isBefore(expect: Expect<T>, expected: ChronoLo
assertionBuilder.createDescriptive(expect, IS_BEFORE, expected) { it.isBefore(expected) }

fun <T : ChronoLocalDateTime<*>> _isBefore(expect: Expect<T>, expected: String): Assertion =
ExpectImpl.builder.createDescriptive(expect, IS_BEFORE, expected) { it.isBefore(stringToLocalDateTime(expected)) }
assertionBuilder.createDescriptive(expect, IS_BEFORE, expected) { it.isBefore(stringToLocalDateTime(expected)) }

@Suppress("DeprecatedCallableAddReplaceWith")
@Deprecated("use the function from atrium-logic instead, will be removed with 1.0.0")
Expand All @@ -37,8 +37,7 @@ fun <T : ChronoLocalDateTime<out ChronoLocalDate>> _isBeforeOrEquals(
fun <T : ChronoLocalDateTime<out ChronoLocalDate>> _isBeforeOrEquals(
expect: Expect<T>,
expected: String
): Assertion =
ExpectImpl.builder.createDescriptive(expect, IS_BEFORE_OR_EQUAL, expected) {
): Assertion = assertionBuilder.createDescriptive(expect, IS_BEFORE_OR_EQUAL, expected) {
it.isBefore(stringToLocalDateTime(expected)) || it.isEqual(stringToLocalDateTime(expected))
}

Expand All @@ -54,7 +53,7 @@ fun <T : ChronoLocalDateTime<out ChronoLocalDate>> _isAfter(
fun <T : ChronoLocalDateTime<out ChronoLocalDate>> _isAfter(
expect: Expect<T>,
expected: String
): Assertion = ExpectImpl.builder.createDescriptive(expect, IS_AFTER, expected) {
): Assertion = assertionBuilder.createDescriptive(expect, IS_AFTER, expected) {
it.isAfter(stringToLocalDateTime(expected))
}

Expand All @@ -70,7 +69,7 @@ fun <T : ChronoLocalDateTime<out ChronoLocalDate>> _isAfterOrEquals(
fun <T : ChronoLocalDateTime<out ChronoLocalDate>> _isAfterOrEquals(
expect: Expect<T>,
expected: String
): Assertion = ExpectImpl.builder.createDescriptive(expect, IS_AFTER_OR_EQUAL, expected) {
): Assertion = assertionBuilder.createDescriptive(expect, IS_AFTER_OR_EQUAL, expected) {
it.isAfter(stringToLocalDateTime(expected)) || it.isEqual(stringToLocalDateTime(expected))
}

Expand All @@ -84,7 +83,7 @@ fun <T : ChronoLocalDateTime<out ChronoLocalDate>> _isEqual(
fun <T : ChronoLocalDateTime<out ChronoLocalDate>> _isEqual(
expect: Expect<T>,
expected: String
): Assertion = ExpectImpl.builder.createDescriptive(expect, IS_EQUAL_TO, expected) {
): Assertion = assertionBuilder.createDescriptive(expect, IS_EQUAL_TO, expected) {
it.isEqual(stringToLocalDateTime(expected))
}

Expand Down

0 comments on commit c43e808

Please sign in to comment.