From 6b65668f76c91c724f689bd930491bdb92ca4e8e Mon Sep 17 00:00:00 2001 From: Joseph Cooper <2599295+grodin@users.noreply.github.com> Date: Thu, 18 Apr 2024 23:16:42 +0100 Subject: [PATCH] Unify property extractor function names (#524) - Rename `prop` to `having` with deprecations - Rename `suspendCall` to `having` with deprecations --------- Co-authored-by: Joseph Cooper --- CHANGELOG.md | 4 ++ .../assertk/coroutines/assertions/any.kt | 10 ++++- .../assertk/coroutines/assertions/flow.kt | 5 +-- .../assertk/coroutines/assertions/AnyTest.kt | 14 +++---- .../kotlin/assertk/assertions/any.kt | 42 +++++++++++++++---- .../kotlin/assertk/assertions/array.kt | 2 +- .../kotlin/assertk/assertions/charsequence.kt | 2 +- .../kotlin/assertk/assertions/collection.kt | 2 +- .../kotlin/assertk/assertions/map.kt | 2 +- .../kotlin/assertk/assertions/throwable.kt | 7 ++-- .../kotlin/test/assertk/assertions/AnyTest.kt | 42 +++++++++---------- .../test/assertk/assertions/IterableTest.kt | 2 +- .../test/assertk/assertions/SequenceTest.kt | 2 +- .../jvmMain/kotlin/assertk/assertions/any.kt | 6 +-- .../jvmMain/kotlin/assertk/assertions/file.kt | 12 +++--- .../kotlin/assertk/assertions/throwable.kt | 2 +- .../test/assertk/assertions/JavaAnyTest.kt | 4 +- .../test/assertk/assertions/OptionalTest.kt | 6 +-- .../assertk/assertions/primitiveArray.kt | 2 +- .../contains-all.html | 4 +- .../contains-at-least.html | 4 +- .../contains-exactly.html | 4 +- .../contains-none.html | 4 +- .../contains-only.html | 4 +- .../contains.html | 4 +- .../assertk.coroutines.assertions/count.html | 4 +- .../does-not-contain.html | 4 +- .../has-count.html | 4 +- .../assertk.coroutines.assertions/index.html | 4 +- .../is-empty.html | 4 +- .../is-not-empty.html | 4 +- .../suspend-call.html | 4 +- docs/assertk-coroutines/index.html | 4 +- docs/assertk-coroutines/navigation.html | 6 +-- .../append-name.html | 4 +- .../expected-list-diff.html | 4 +- .../assertk.assertions.support/expected.html | 4 +- .../assertk.assertions.support/fail.html | 4 +- .../assertk.assertions.support/index.html | 4 +- .../assertk.assertions.support/show.html | 4 +- .../assertk/assertk.assertions/--index--.html | 4 +- docs/assertk/assertk.assertions/any.html | 6 +-- docs/assertk/assertk.assertions/at-least.html | 6 +-- docs/assertk/assertk.assertions/at-most.html | 6 +-- docs/assertk/assertk.assertions/bytes.html | 4 +- docs/assertk/assertk.assertions/cause.html | 4 +- .../assertk.assertions/contains-all.html | 4 +- .../assertk.assertions/contains-at-least.html | 4 +- .../contains-exactly-in-any-order.html | 4 +- .../assertk.assertions/contains-exactly.html | 4 +- .../assertk.assertions/contains-match.html | 4 +- .../assertk.assertions/contains-none.html | 4 +- .../assertk.assertions/contains-only.html | 4 +- .../assertk.assertions/contains-sub-list.html | 4 +- docs/assertk/assertk.assertions/contains.html | 4 +- .../assertk.assertions/corresponds.html | 4 +- .../does-not-contain-key.html | 4 +- .../assertk.assertions/does-not-contain.html | 4 +- .../does-not-correspond.html | 4 +- .../does-not-have-class.html | 4 +- docs/assertk/assertk.assertions/each.html | 4 +- .../assertk/assertk.assertions/ends-with.html | 4 +- docs/assertk/assertk.assertions/exactly.html | 6 +-- docs/assertk/assertk.assertions/exists.html | 4 +- .../assertk/assertk.assertions/extension.html | 4 +- .../assertk.assertions/extracting.html | 4 +- docs/assertk/assertk.assertions/first.html | 4 +- .../assertk/assertk.assertions/has-cause.html | 4 +- .../assertk/assertk.assertions/has-class.html | 4 +- .../assertk.assertions/has-direct-child.html | 4 +- .../assertk.assertions/has-extension.html | 4 +- .../assertk.assertions/has-hash-code.html | 4 +- .../assertk.assertions/has-length.html | 4 +- .../assertk.assertions/has-line-count.html | 4 +- .../assertk.assertions/has-message.html | 4 +- docs/assertk/assertk.assertions/has-name.html | 4 +- .../assertk.assertions/has-no-cause.html | 4 +- .../has-not-same-content-as.html | 4 +- .../assertk.assertions/has-parent.html | 4 +- docs/assertk/assertk.assertions/has-path.html | 4 +- .../assertk.assertions/has-root-cause.html | 4 +- .../has-same-content-as.html | 4 +- .../has-same-length-as.html | 4 +- .../assertk.assertions/has-same-size-as.html | 4 +- docs/assertk/assertk.assertions/has-size.html | 4 +- docs/assertk/assertk.assertions/has-text.html | 4 +- .../assertk.assertions/has-to-string.html | 4 +- .../assertk/assertk.assertions/has-value.html | 4 +- .../assertk.assertions/hash-code-fun.html | 4 +- docs/assertk/assertk.assertions/index.html | 4 +- .../assertk.assertions/is-between.html | 4 +- .../assertk.assertions/is-close-to.html | 4 +- .../is-data-class-equal-to.html | 4 +- .../assertk.assertions/is-directory.html | 4 +- docs/assertk/assertk.assertions/is-empty.html | 4 +- .../is-equal-by-comparing-to.html | 4 +- ...is-equal-to-ignoring-given-properties.html | 4 +- .../is-equal-to-with-given-properties.html | 4 +- .../assertk.assertions/is-equal-to.html | 4 +- .../assertk.assertions/is-executable.html | 4 +- .../assertk.assertions/is-failure.html | 4 +- docs/assertk/assertk.assertions/is-false.html | 4 +- docs/assertk/assertk.assertions/is-file.html | 4 +- .../is-greater-than-or-equal-to.html | 4 +- .../assertk.assertions/is-greater-than.html | 4 +- .../assertk/assertk.assertions/is-hidden.html | 4 +- docs/assertk/assertk.assertions/is-in.html | 4 +- .../assertk.assertions/is-instance-of.html | 4 +- .../is-less-than-or-equal-to.html | 4 +- .../assertk.assertions/is-less-than.html | 4 +- .../assertk.assertions/is-negative.html | 4 +- .../assertk.assertions/is-not-empty.html | 4 +- .../assertk.assertions/is-not-equal-to.html | 4 +- .../assertk.assertions/is-not-hidden.html | 4 +- .../assertk/assertk.assertions/is-not-in.html | 4 +- .../is-not-instance-of.html | 4 +- .../assertk.assertions/is-not-null.html | 4 +- .../assertk.assertions/is-not-same-as.html | 4 +- .../is-not-same-instance-as.html | 4 +- .../assertk.assertions/is-not-zero.html | 4 +- .../assertk.assertions/is-null-or-empty.html | 4 +- docs/assertk/assertk.assertions/is-null.html | 4 +- .../assertk.assertions/is-positive.html | 4 +- .../assertk.assertions/is-present.html | 4 +- .../assertk.assertions/is-readable.html | 4 +- .../assertk.assertions/is-regular-file.html | 4 +- .../assertk.assertions/is-same-as.html | 4 +- .../assertk.assertions/is-same-file-as.html | 4 +- .../is-same-instance-as.html | 4 +- .../is-strictly-between.html | 4 +- .../assertk.assertions/is-success.html | 4 +- .../assertk.assertions/is-symbolic-link.html | 4 +- docs/assertk/assertk.assertions/is-true.html | 4 +- .../assertk.assertions/is-writable.html | 4 +- docs/assertk/assertk.assertions/is-zero.html | 4 +- docs/assertk/assertk.assertions/j-class.html | 4 +- docs/assertk/assertk.assertions/k-class.html | 4 +- docs/assertk/assertk.assertions/key.html | 4 +- docs/assertk/assertk.assertions/length.html | 4 +- docs/assertk/assertk.assertions/lines.html | 4 +- .../assertk.assertions/matches-predicate.html | 6 +-- docs/assertk/assertk.assertions/matches.html | 4 +- .../assertk.assertions/message-contains.html | 4 +- docs/assertk/assertk.assertions/message.html | 4 +- docs/assertk/assertk.assertions/name.html | 4 +- docs/assertk/assertk.assertions/none.html | 4 +- docs/assertk/assertk.assertions/parent.html | 4 +- docs/assertk/assertk.assertions/path.html | 4 +- docs/assertk/assertk.assertions/prop.html | 4 +- .../assertk.assertions/root-cause.html | 4 +- docs/assertk/assertk.assertions/single.html | 4 +- docs/assertk/assertk.assertions/size.html | 4 +- .../assertk.assertions/stack-trace.html | 4 +- .../assertk.assertions/starts-with.html | 4 +- docs/assertk/assertk.assertions/text.html | 4 +- .../assertk.assertions/to-string-fun.html | 4 +- docs/assertk/assertk/-assert/assert-that.html | 4 +- docs/assertk/assertk/-assert/given.html | 4 +- docs/assertk/assertk/-assert/index.html | 4 +- docs/assertk/assertk/-assert/name.html | 4 +- docs/assertk/assertk/-assert/transform.html | 4 +- docs/assertk/assertk/-assertk-dsl/index.html | 4 +- .../assertk/assertk/-table-builder/index.html | 4 +- docs/assertk/assertk/-table/index.html | 4 +- .../assertk/-table1-builder/index.html | 4 +- docs/assertk/assertk/-table1-builder/row.html | 4 +- docs/assertk/assertk/-table1/for-all.html | 4 +- docs/assertk/assertk/-table1/index.html | 4 +- docs/assertk/assertk/-table1/row.html | 4 +- .../assertk/-table2-builder/index.html | 4 +- docs/assertk/assertk/-table2-builder/row.html | 4 +- docs/assertk/assertk/-table2/for-all.html | 4 +- docs/assertk/assertk/-table2/index.html | 4 +- docs/assertk/assertk/-table2/row.html | 4 +- .../assertk/-table3-builder/index.html | 4 +- docs/assertk/assertk/-table3-builder/row.html | 4 +- docs/assertk/assertk/-table3/for-all.html | 4 +- docs/assertk/assertk/-table3/index.html | 4 +- docs/assertk/assertk/-table3/row.html | 4 +- .../assertk/-table4-builder/index.html | 4 +- docs/assertk/assertk/-table4-builder/row.html | 4 +- docs/assertk/assertk/-table4/for-all.html | 4 +- docs/assertk/assertk/-table4/index.html | 4 +- docs/assertk/assertk/-table4/row.html | 4 +- .../-thread-local-ref/-thread-local-ref.html | 11 ++--- .../assertk/-thread-local-ref/get.html | 11 ++--- .../assertk/-thread-local-ref/index.html | 41 +++++++++--------- .../assertk/-thread-local-ref/set.html | 11 ++--- docs/assertk/assertk/all.html | 4 +- docs/assertk/assertk/assert-all.html | 4 +- docs/assertk/assertk/assert-failure.html | 4 +- docs/assertk/assertk/assert-that.html | 4 +- docs/assertk/assertk/fail.html | 4 +- docs/assertk/assertk/index.html | 18 ++++---- docs/assertk/assertk/notify-failure.html | 4 +- docs/assertk/assertk/table-of.html | 4 +- docs/assertk/assertk/value.html | 4 +- docs/assertk/index.html | 16 +++---- docs/assertk/navigation.html | 6 +-- docs/index.html | 4 +- docs/navigation.html | 6 +-- docs/scripts/sourceset_dependencies.js | 2 +- 202 files changed, 518 insertions(+), 480 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f28dc916..6558d639 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Changed +- renamed `prop` to `having` as part of effort to unify API naming, old name is deprecated. +- renamed `suspendCall` to `having` as part of effort to unify API naming, old name is deprecated. + ## [0.28.1] 2024-04-17 ### Added diff --git a/assertk-coroutines/src/commonMain/kotlin/assertk/coroutines/assertions/any.kt b/assertk-coroutines/src/commonMain/kotlin/assertk/coroutines/assertions/any.kt index 3f7c1944..6ea7492e 100644 --- a/assertk-coroutines/src/commonMain/kotlin/assertk/coroutines/assertions/any.kt +++ b/assertk-coroutines/src/commonMain/kotlin/assertk/coroutines/assertions/any.kt @@ -10,8 +10,16 @@ import assertk.assertions.support.appendName * @param extract The suspend function to extract the property value out of the value of the current assert. * * ``` - * assertThat(person).suspendCall("name()", { it.name() }).isEqualTo("Sue") + * assertThat(person).having("name()", { it.name() }).isEqualTo("Sue") * ``` */ +suspend fun Assert.having(name: String, extract: suspend (T) -> P): Assert

= + transform(appendName(name, separator = ".")) { extract(it) } + +@Deprecated( + message = "Function suspendCall has been renamed to having", + replaceWith = ReplaceWith("having(name, extract)"), + level = DeprecationLevel.WARNING +) suspend fun Assert.suspendCall(name: String, extract: suspend (T) -> P): Assert

= transform(appendName(name, separator = ".")) { extract(it) } diff --git a/assertk-coroutines/src/commonMain/kotlin/assertk/coroutines/assertions/flow.kt b/assertk-coroutines/src/commonMain/kotlin/assertk/coroutines/assertions/flow.kt index f323da52..9115ee2f 100644 --- a/assertk-coroutines/src/commonMain/kotlin/assertk/coroutines/assertions/flow.kt +++ b/assertk-coroutines/src/commonMain/kotlin/assertk/coroutines/assertions/flow.kt @@ -7,10 +7,9 @@ import assertk.assertions.support.expected import assertk.assertions.support.expectedListDiff import assertk.assertions.support.show import kotlinx.coroutines.CancellationException -import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.coroutines.flow.* -suspend fun Assert>.count(): Assert = suspendCall("count()", Flow<*>::count) +suspend fun Assert>.count(): Assert = having("count()", Flow<*>::count) /** * Asserts the flow is empty. Fails as soon as the flow delivers an element. @@ -190,4 +189,4 @@ suspend fun Assert>.containsExactly(vararg elements: Any?) = given { act } private class AbortFlowException : - CancellationException("Flow was aborted, no more elements needed") \ No newline at end of file + CancellationException("Flow was aborted, no more elements needed") diff --git a/assertk-coroutines/src/commonTest/kotlin/test/assertk/coroutines/assertions/AnyTest.kt b/assertk-coroutines/src/commonTest/kotlin/test/assertk/coroutines/assertions/AnyTest.kt index 065d95b1..1fd6afaf 100644 --- a/assertk-coroutines/src/commonTest/kotlin/test/assertk/coroutines/assertions/AnyTest.kt +++ b/assertk-coroutines/src/commonTest/kotlin/test/assertk/coroutines/assertions/AnyTest.kt @@ -4,7 +4,7 @@ import assertk.assertThat import assertk.assertions.isEmpty import assertk.assertions.isEqualTo import assertk.assertions.isNotNull -import assertk.coroutines.assertions.suspendCall +import assertk.coroutines.assertions.having import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFailsWith @@ -14,22 +14,22 @@ class AnyTest { val subject = BasicObject("test") @Test - fun suspendCall_passes() = runTest { - assertThat(subject).suspendCall("str") { it.str() }.isEqualTo("test") + fun having_passes() = runTest { + assertThat(subject).having("str") { it.str() }.isEqualTo("test") } @Test - fun suspendCall_includes_name_in_failure_message() = runTest { + fun having_includes_name_in_failure_message() = runTest { val error = assertFailsWith { - assertThat(subject).suspendCall("str") { it.str() }.isEmpty() + assertThat(subject).having("str") { it.str() }.isEmpty() } assertEquals("expected [str] to be empty but was:<\"test\"> (test)", error.message) } @Test - fun nested_suspendCall_include_names_in_failure_message() = runTest { + fun nested_having_include_names_in_failure_message() = runTest { val error = assertFailsWith { - assertThat(subject).suspendCall("other") { it.other() }.suspendCall("str") { it?.str() }.isNotNull() + assertThat(subject).having("other") { it.other() }.having("str") { it?.str() }.isNotNull() } assertEquals("expected [other.str] to not be null (test)", error.message) } diff --git a/assertk/src/commonMain/kotlin/assertk/assertions/any.kt b/assertk/src/commonMain/kotlin/assertk/assertions/any.kt index cf062d2a..6ad04107 100644 --- a/assertk/src/commonMain/kotlin/assertk/assertions/any.kt +++ b/assertk/src/commonMain/kotlin/assertk/assertions/any.kt @@ -13,17 +13,17 @@ import kotlin.reflect.KProperty1 /** * Returns an assert on the kotlin class of the value. */ -fun Assert.kClass() = prop("class") { it::class } +fun Assert.kClass() = having("class") { it::class } /** * Returns an assert on the toString method of the value. */ -fun Assert.toStringFun() = prop("toString", Any?::toString) +fun Assert.toStringFun() = having("toString", Any?::toString) /** * Returns an assert on the hasCode method of the value. */ -fun Assert.hashCodeFun() = prop("hashCode", Any::hashCode) +fun Assert.hashCodeFun() = having("hashCode", Any::hashCode) /** * Asserts the value is equal to the expected one, using `==`. @@ -146,39 +146,64 @@ fun Assert.isNotNull(): Assert = transform { actual -> * @param extract The function to extract the property value out of the value of the current assert. * * ``` - * assertThat(person).prop("name", { it.name }).isEqualTo("Sue") + * assertThat(person).having("name", { it.name }).isEqualTo("Sue") * ``` */ +fun Assert.having(name: String, extract: (T) -> P): Assert

= + transform(appendName(name, separator = "."), extract) + +@Deprecated( + message = "Function prop has been renamed to having", + replaceWith = ReplaceWith("having(name, extract)"), + level = DeprecationLevel.WARNING +) fun Assert.prop(name: String, extract: (T) -> P): Assert

= transform(appendName(name, separator = "."), extract) + /** * Returns an assert that asserts on the given property. * * Example: * ``` - * assertThat(person).prop(Person::name).isEqualTo("Sue") + * assertThat(person).having(Person::name).isEqualTo("Sue") * ``` * * @param property Property on which to assert. The name of this * property will be shown in failure messages. */ +fun Assert.having(property: KProperty1): Assert

= + having(property.name) { property.get(it) } + +@Deprecated( + message = "Function prop has been renamed to having", + replaceWith = ReplaceWith("having(property)"), + level = DeprecationLevel.WARNING +) fun Assert.prop(property: KProperty1): Assert

= - prop(property.name) { property.get(it) } + having(property.name) { property.get(it) } /** * Returns an assert that asserts on the result of calling the given function. * * Example: * ``` - * assertThat(person).prop(Person::nameAsLowerCase).isEqualTo("sue") + * assertThat(person).having(Person::nameAsLowerCase).isEqualTo("sue") * ``` * * @param callable Callable on which to assert. The name of this * callable will be shown in the failure messages. */ +fun Assert.having(callable: F): Assert where F : (T) -> R, F : KCallable = + having(callable.name, callable) + +@Deprecated( + message = "Function prop has been renamed to having", + replaceWith = ReplaceWith("having(callable)"), + level = DeprecationLevel.WARNING +) fun Assert.prop(callable: F): Assert where F : (T) -> R, F : KCallable = - prop(callable.name, callable) + having(callable.name, callable) /** * Asserts the value has the expected kotlin class. This is an exact match, so `assertThat("test").hasClass()` @@ -219,6 +244,7 @@ fun Assert.doesNotHaveClass(kclass: KClass) = given { actual if (kclass != actual::class) return expected("to not have class:${show(kclass)}") } + /** * Asserts the value is not an instance of the expected kotlin class. Both * `assertThat("test").isNotInstanceOf()` and `assertThat("test").isNotInstanceOf()` fail. diff --git a/assertk/src/commonMain/kotlin/assertk/assertions/array.kt b/assertk/src/commonMain/kotlin/assertk/assertions/array.kt index 8f843987..db67357b 100644 --- a/assertk/src/commonMain/kotlin/assertk/assertions/array.kt +++ b/assertk/src/commonMain/kotlin/assertk/assertions/array.kt @@ -7,7 +7,7 @@ import assertk.assertions.support.* /** * Returns an assert on the Arrays's size. */ -fun Assert>.size() = prop("size") { it.size } +fun Assert>.size() = having("size") { it.size } /** * Asserts the array contents are equal to the expected one, using [contentDeepEquals]. diff --git a/assertk/src/commonMain/kotlin/assertk/assertions/charsequence.kt b/assertk/src/commonMain/kotlin/assertk/assertions/charsequence.kt index 01a71147..ab0115fd 100644 --- a/assertk/src/commonMain/kotlin/assertk/assertions/charsequence.kt +++ b/assertk/src/commonMain/kotlin/assertk/assertions/charsequence.kt @@ -7,7 +7,7 @@ import assertk.assertions.support.show /** * Returns an assert on the CharSequence's length. */ -fun Assert.length() = prop("length", CharSequence::length) +fun Assert.length() = having("length", CharSequence::length) /** * Asserts the char sequence is empty. diff --git a/assertk/src/commonMain/kotlin/assertk/assertions/collection.kt b/assertk/src/commonMain/kotlin/assertk/assertions/collection.kt index 6446b646..18e2cd1f 100644 --- a/assertk/src/commonMain/kotlin/assertk/assertions/collection.kt +++ b/assertk/src/commonMain/kotlin/assertk/assertions/collection.kt @@ -6,7 +6,7 @@ import assertk.assertions.support.* /** * Returns an assert on the Collection's size. */ -fun Assert>.size() = prop("size", Collection<*>::size) +fun Assert>.size() = having("size", Collection<*>::size) /** * Asserts the collection is empty. diff --git a/assertk/src/commonMain/kotlin/assertk/assertions/map.kt b/assertk/src/commonMain/kotlin/assertk/assertions/map.kt index 9eabb07e..e40d28be 100644 --- a/assertk/src/commonMain/kotlin/assertk/assertions/map.kt +++ b/assertk/src/commonMain/kotlin/assertk/assertions/map.kt @@ -8,7 +8,7 @@ import assertk.assertions.support.show /** * Returns an assert on the Maps's size. */ -fun Assert>.size() = prop("size", Map<*, *>::size) +fun Assert>.size() = having("size", Map<*, *>::size) /** * Asserts the collection is empty. diff --git a/assertk/src/commonMain/kotlin/assertk/assertions/throwable.kt b/assertk/src/commonMain/kotlin/assertk/assertions/throwable.kt index 036d437f..a856d3f4 100644 --- a/assertk/src/commonMain/kotlin/assertk/assertions/throwable.kt +++ b/assertk/src/commonMain/kotlin/assertk/assertions/throwable.kt @@ -1,23 +1,22 @@ package assertk.assertions import assertk.Assert -import assertk.ValueAssert import assertk.all /** * Returns an assert on the throwable's message. */ -fun Assert.message() = prop("message", Throwable::message) +fun Assert.message() = having("message", Throwable::message) /** * Returns an assert on the throwable's cause. */ -fun Assert.cause() = prop("cause", Throwable::cause) +fun Assert.cause() = having("cause", Throwable::cause) /** * Returns an assert on the throwable's root cause. */ -fun Assert.rootCause() = prop("rootCause", Throwable::rootCause) +fun Assert.rootCause() = having("rootCause", Throwable::rootCause) /** * Asserts the throwable has the expected message. diff --git a/assertk/src/commonTest/kotlin/test/assertk/assertions/AnyTest.kt b/assertk/src/commonTest/kotlin/test/assertk/assertions/AnyTest.kt index 4b47762a..17c9fa52 100644 --- a/assertk/src/commonTest/kotlin/test/assertk/assertions/AnyTest.kt +++ b/assertk/src/commonTest/kotlin/test/assertk/assertions/AnyTest.kt @@ -240,66 +240,66 @@ class AnyTest { assertEquals("expected [int]:<[99]> but was:<[42]> (test)", error.message) } - //region prop + //region having @Test - fun prop_passes() { - assertThat(subject).prop("str") { it.str }.isEqualTo("test") + fun having_passes() { + assertThat(subject).having("str") { it.str }.isEqualTo("test") } @Test - fun prop_includes_name_in_failure_message() { + fun having_includes_name_in_failure_message() { val error = assertFailsWith { - assertThat(subject).prop("str") { it.str }.isEmpty() + assertThat(subject).having("str") { it.str }.isEmpty() } assertEquals("expected [str] to be empty but was:<\"test\"> (test)", error.message) } @Test - fun nested_prop_include_names_in_failure_message() { + fun nested_having_include_names_in_failure_message() { val error = assertFailsWith { - assertThat(subject).prop("other") { it.other }.prop("str") { it?.str }.isNotNull() + assertThat(subject).having("other") { it.other }.having("str") { it?.str }.isNotNull() } assertEquals("expected [other.str] to not be null (test)", error.message) } @Test - fun prop_property1_extract_prop_passes() { - assertThat(subject).prop(BasicObject::str).isEqualTo("test") + fun having_property1_extract_prop_passes() { + assertThat(subject).having(BasicObject::str).isEqualTo("test") } @Test - fun prop_property1_extract_prop_includes_name_in_failure_message() { + fun having_property1_extract_prop_includes_name_in_failure_message() { val error = assertFailsWith { - assertThat(subject).prop(BasicObject::str).isEmpty() + assertThat(subject).having(BasicObject::str).isEmpty() } assertEquals("expected [str] to be empty but was:<\"test\"> (test)", error.message) } @Test - fun prop_property1_includes_error_message_when_fails() { + fun having_property1_includes_error_message_when_fails() { val error = assertFails { - assertThat(subject).prop(BasicObject::failing).isEmpty() + assertThat(subject).having(BasicObject::failing).isEmpty() } assertEquals("sorry!", error.message) } @Test - fun prop_callable_function_passes() { - assertThat(subject).prop(BasicObject::funcA).isEqualTo("A") + fun having_callable_function_passes() { + assertThat(subject).having(BasicObject::funcA).isEqualTo("A") } @Test - fun prop_callable_function_includes_name_in_failure_message() { + fun having_callable_function_includes_name_in_failure_message() { val error = assertFailsWith { - assertThat(subject).prop(BasicObject::funcA).isEqualTo(14) + assertThat(subject).having(BasicObject::funcA).isEqualTo(14) } assertEquals("expected [funcA]:<[14]> but was:<[\"A\"]> (test)", error.message) } @Test - fun nested_prop_callable_function_include_names_in_failure_message() { + fun nested_having_callable_function_include_names_in_failure_message() { val error = assertFailsWith { - assertThat(subject).prop(BasicObject::funcB).prop(BasicObject::funcA).isNull() + assertThat(subject).having(BasicObject::funcB).having(BasicObject::funcA).isNull() } assertEquals("expected [funcB.funcA] to be null but was:<\"A\"> (test)", error.message) } @@ -456,7 +456,7 @@ class AnyTest { @Test fun isInstanceOf_kclass_run_block_when_passes() { val error = assertFailsWith { - assertThat(subject as TestObject).isInstanceOf(BasicObject::class).prop("str", BasicObject::str) + assertThat(subject as TestObject).isInstanceOf(BasicObject::class).having("str", BasicObject::str) .isEqualTo("wrong") } assertEquals("expected [str]:<\"[wrong]\"> but was:<\"[test]\"> (test)", error.message) @@ -465,7 +465,7 @@ class AnyTest { @Test fun isInstanceOf_reified_kclass_run_block_when_passes() { val error = assertFailsWith { - assertThat(subject as TestObject).isInstanceOf().prop("str", BasicObject::str) + assertThat(subject as TestObject).isInstanceOf().having("str", BasicObject::str) .isEqualTo("wrong") } assertEquals("expected [str]:<\"[wrong]\"> but was:<\"[test]\"> (test)", error.message) diff --git a/assertk/src/commonTest/kotlin/test/assertk/assertions/IterableTest.kt b/assertk/src/commonTest/kotlin/test/assertk/assertions/IterableTest.kt index 32361f81..79ed523b 100644 --- a/assertk/src/commonTest/kotlin/test/assertk/assertions/IterableTest.kt +++ b/assertk/src/commonTest/kotlin/test/assertk/assertions/IterableTest.kt @@ -630,4 +630,4 @@ class IterableTest { } private fun emptyIterable(): Iterable = emptyList() -private fun iterableOf(vararg elements: T): Iterable = elements.toList() \ No newline at end of file +private fun iterableOf(vararg elements: T): Iterable = elements.toList() diff --git a/assertk/src/commonTest/kotlin/test/assertk/assertions/SequenceTest.kt b/assertk/src/commonTest/kotlin/test/assertk/assertions/SequenceTest.kt index 6c1bd108..f0ab143e 100644 --- a/assertk/src/commonTest/kotlin/test/assertk/assertions/SequenceTest.kt +++ b/assertk/src/commonTest/kotlin/test/assertk/assertions/SequenceTest.kt @@ -661,4 +661,4 @@ class SequenceTest { private fun oneshotSequenceOf(vararg elements: T): Sequence { var i = 0 return generateSequence { elements.getOrNull(i++) } -} \ No newline at end of file +} diff --git a/assertk/src/jvmMain/kotlin/assertk/assertions/any.kt b/assertk/src/jvmMain/kotlin/assertk/assertions/any.kt index b9a166ab..c9a6f741 100644 --- a/assertk/src/jvmMain/kotlin/assertk/assertions/any.kt +++ b/assertk/src/jvmMain/kotlin/assertk/assertions/any.kt @@ -15,7 +15,7 @@ import kotlin.reflect.full.memberProperties /** * Returns an assert on the java class of the value. */ -fun Assert.jClass() = prop("class") { it::class.java } +fun Assert.jClass() = having("class") { it::class.java } /** * Asserts the value has the expected java class. This is an exact match, so @@ -86,7 +86,7 @@ private fun Assert.isDataClassEqualToImpl(expected: T, kclass: KClass<*>? for (memberProp in kclass.memberProperties) { @Suppress("UNCHECKED_CAST") val force = memberProp as KProperty1 - prop(force).isDataClassEqualToImpl(force.get(expected), force.returnType.classifier as? KClass<*>) + having(force).isDataClassEqualToImpl(force.get(expected), force.returnType.classifier as? KClass<*>) } } else { isEqualTo(expected) @@ -120,4 +120,4 @@ fun Assert.isEqualToIgnoringGivenProperties(other: T, vararg proper } } } -} \ No newline at end of file +} diff --git a/assertk/src/jvmMain/kotlin/assertk/assertions/file.kt b/assertk/src/jvmMain/kotlin/assertk/assertions/file.kt index 2a5b052f..ec20ae94 100644 --- a/assertk/src/jvmMain/kotlin/assertk/assertions/file.kt +++ b/assertk/src/jvmMain/kotlin/assertk/assertions/file.kt @@ -11,32 +11,32 @@ import kotlin.io.readBytes /** * Returns an assert on the file's name. */ -fun Assert.name() = prop("name", File::getName) +fun Assert.name() = having("name", File::getName) /** * Returns an assert on the file's path. */ -fun Assert.path() = prop("path", File::getPath) +fun Assert.path() = having("path", File::getPath) /** * Returns an assert on the file's parent. */ -fun Assert.parent() = prop("parent", File::getParent) +fun Assert.parent() = having("parent", File::getParent) /** * Returns an assert on the file's extension. */ -fun Assert.extension() = prop("extension", File::extension) +fun Assert.extension() = having("extension", File::extension) /** * Returns an assert on the file's contents as text. */ -fun Assert.text(charset: Charset = Charsets.UTF_8) = prop("text") { it.readText(charset) } +fun Assert.text(charset: Charset = Charsets.UTF_8) = having("text") { it.readText(charset) } /** * Returns an assert on the file's contents as bytes. */ -fun Assert.bytes() = prop("bytes", File::readBytes) +fun Assert.bytes() = having("bytes", File::readBytes) /** * Asserts the file exists. diff --git a/assertk/src/jvmMain/kotlin/assertk/assertions/throwable.kt b/assertk/src/jvmMain/kotlin/assertk/assertions/throwable.kt index 74e33bd7..aecf439c 100644 --- a/assertk/src/jvmMain/kotlin/assertk/assertions/throwable.kt +++ b/assertk/src/jvmMain/kotlin/assertk/assertions/throwable.kt @@ -7,4 +7,4 @@ import assertk.Assert /** * Returns an assert on the throwable's stack trace. */ -fun Assert.stackTrace() = prop("stackTrace") { it.stackTrace.map(StackTraceElement::toString) } +fun Assert.stackTrace() = having("stackTrace") { it.stackTrace.map(StackTraceElement::toString) } diff --git a/assertk/src/jvmTest/kotlin/test/assertk/assertions/JavaAnyTest.kt b/assertk/src/jvmTest/kotlin/test/assertk/assertions/JavaAnyTest.kt index c162b2df..ed81e3ad 100644 --- a/assertk/src/jvmTest/kotlin/test/assertk/assertions/JavaAnyTest.kt +++ b/assertk/src/jvmTest/kotlin/test/assertk/assertions/JavaAnyTest.kt @@ -4,10 +4,8 @@ import assertk.assertThat import assertk.assertions.* import test.assertk.opentestPackageName import java.lang.Exception -import kotlin.reflect.KCallable import kotlin.test.Test import kotlin.test.assertEquals -import kotlin.test.assertFails import kotlin.test.assertFailsWith class JavaAnyTest { @@ -48,7 +46,7 @@ class JavaAnyTest { val error = assertFailsWith { assertThat(subject as TestObject) .isInstanceOf(BasicObject::class.java) - .prop("str", BasicObject::str) + .having("str", BasicObject::str) .isEqualTo("wrong") } assertEquals("expected [str]:<\"[wrong]\"> but was:<\"[test]\"> (test)", error.message) diff --git a/assertk/src/jvmTest/kotlin/test/assertk/assertions/OptionalTest.kt b/assertk/src/jvmTest/kotlin/test/assertk/assertions/OptionalTest.kt index 0596a1a3..1a357020 100644 --- a/assertk/src/jvmTest/kotlin/test/assertk/assertions/OptionalTest.kt +++ b/assertk/src/jvmTest/kotlin/test/assertk/assertions/OptionalTest.kt @@ -96,9 +96,9 @@ internal class OptionalTest { assertAll { assertThat(findPersonById(0)).isEmpty() assertThat(findPersonById(personId)).isPresent().all { - prop(Person::id).isEqualTo(personId) - prop(Person::name).isEqualTo(personName) - prop(Person::dateCreated).all { + having(Person::id).isEqualTo(personId) + having(Person::name).isEqualTo(personName) + having(Person::dateCreated).all { isEqualTo(personDateCreated) transform("dateCreated.year") { it.year }.isGreaterThan(2020) } diff --git a/assertk/src/template/assertk/assertions/primitiveArray.kt b/assertk/src/template/assertk/assertions/primitiveArray.kt index d5ba6f0c..93d991e9 100644 --- a/assertk/src/template/assertk/assertions/primitiveArray.kt +++ b/assertk/src/template/assertk/assertions/primitiveArray.kt @@ -27,7 +27,7 @@ $T:$N:$E:$A = */ @JvmName("$NSize") $A -fun Assert<$T>.size() = prop("size") { it.size } +fun Assert<$T>.size() = having("size") { it.size } /** * Asserts the $T contents are equal to the expected one, using [contentDeepEquals]. diff --git a/docs/assertk-coroutines/assertk.coroutines.assertions/contains-all.html b/docs/assertk-coroutines/assertk.coroutines.assertions/contains-all.html index efe9aee5..4401cb16 100644 --- a/docs/assertk-coroutines/assertk.coroutines.assertions/contains-all.html +++ b/docs/assertk-coroutines/assertk.coroutines.assertions/contains-all.html @@ -41,7 +41,7 @@ assertk-project -

0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

containsAll

suspend fun Assert<Flow<*>>.containsAll(vararg elements: Any?)

Deprecated

renamed to containsAtLeast

Replace with

containsAtLeast(*elements)

Asserts the flow emits at least the expected elements, in any order. The flow may also emit additional elements. Succeeds as soon as all expected elements are received.

See also

diff --git a/docs/assertk-coroutines/assertk.coroutines.assertions/contains-at-least.html b/docs/assertk-coroutines/assertk.coroutines.assertions/contains-at-least.html index de0316f9..949d8072 100644 --- a/docs/assertk-coroutines/assertk.coroutines.assertions/contains-at-least.html +++ b/docs/assertk-coroutines/assertk.coroutines.assertions/contains-at-least.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

containsAtLeas
suspend fun Assert<Flow<*>>.containsAtLeast(vararg elements: Any?)

Asserts the flow emits at least the expected elements, in any order. The flow may also emit additional elements. Succeeds as soon as all expected elements are received.

See also

diff --git a/docs/assertk-coroutines/assertk.coroutines.assertions/contains-exactly.html b/docs/assertk-coroutines/assertk.coroutines.assertions/contains-exactly.html index 8ba020b7..3a08cff3 100644 --- a/docs/assertk-coroutines/assertk.coroutines.assertions/contains-exactly.html +++ b/docs/assertk-coroutines/assertk.coroutines.assertions/contains-exactly.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

containsExactly
suspend fun Assert<Flow<*>>.containsExactly(vararg elements: Any?)

Asserts the flow contains exactly the expected elements. They must be in the same order and there must not be any extra elements.

See also

diff --git a/docs/assertk-coroutines/assertk.coroutines.assertions/contains-none.html b/docs/assertk-coroutines/assertk.coroutines.assertions/contains-none.html index e4e3813b..85b78476 100644 --- a/docs/assertk-coroutines/assertk.coroutines.assertions/contains-none.html +++ b/docs/assertk-coroutines/assertk.coroutines.assertions/contains-none.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

containsNone

suspend fun Assert<Flow<*>>.containsNone(vararg elements: Any?)

Asserts the collection does not contain any of the expected elements. Fails as soon as one of the expected elements is received.

See also

diff --git a/docs/assertk-coroutines/assertk.coroutines.assertions/contains-only.html b/docs/assertk-coroutines/assertk.coroutines.assertions/contains-only.html index 56818361..537b726f 100644 --- a/docs/assertk-coroutines/assertk.coroutines.assertions/contains-only.html +++ b/docs/assertk-coroutines/assertk.coroutines.assertions/contains-only.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

containsOnly

suspend fun Assert<Flow<*>>.containsOnly(vararg elements: Any?)

Asserts the flow contains only the expected elements, in any order.

See also

diff --git a/docs/assertk-coroutines/assertk.coroutines.assertions/contains.html b/docs/assertk-coroutines/assertk.coroutines.assertions/contains.html index adf304ff..6711db14 100644 --- a/docs/assertk-coroutines/assertk.coroutines.assertions/contains.html +++ b/docs/assertk-coroutines/assertk.coroutines.assertions/contains.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

contains

suspend fun Assert<Flow<*>>.contains(element: Any?)

Asserts the flow contains the expected element, using in. Succeeds as soon as that element is received.

See also

diff --git a/docs/assertk-coroutines/assertk.coroutines.assertions/count.html b/docs/assertk-coroutines/assertk.coroutines.assertions/count.html index d14e50ae..5f1a3985 100644 --- a/docs/assertk-coroutines/assertk.coroutines.assertions/count.html +++ b/docs/assertk-coroutines/assertk.coroutines.assertions/count.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

count

suspend fun Assert<Flow<*>>.count(): Assert<Int>
diff --git a/docs/assertk-coroutines/assertk.coroutines.assertions/does-not-contain.html b/docs/assertk-coroutines/assertk.coroutines.assertions/does-not-contain.html index 3fbaeb29..e4028e03 100644 --- a/docs/assertk-coroutines/assertk.coroutines.assertions/does-not-contain.html +++ b/docs/assertk-coroutines/assertk.coroutines.assertions/does-not-contain.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

doesNotContain
suspend fun Assert<Flow<*>>.doesNotContain(element: Any?)

Asserts the flow does not contain any of the expected elements. Fails as soon as that element is received.

See also

diff --git a/docs/assertk-coroutines/assertk.coroutines.assertions/has-count.html b/docs/assertk-coroutines/assertk.coroutines.assertions/has-count.html index b7e9a3b1..90386975 100644 --- a/docs/assertk-coroutines/assertk.coroutines.assertions/has-count.html +++ b/docs/assertk-coroutines/assertk.coroutines.assertions/has-count.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

hasCount

suspend fun Assert<Flow<*>>.hasCount(count: Int)
diff --git a/docs/assertk-coroutines/assertk.coroutines.assertions/index.html b/docs/assertk-coroutines/assertk.coroutines.assertions/index.html index 9fba545a..7a6a23b1 100644 --- a/docs/assertk-coroutines/assertk.coroutines.assertions/index.html +++ b/docs/assertk-coroutines/assertk.coroutines.assertions/index.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -254,7 +254,7 @@

Functions

diff --git a/docs/assertk-coroutines/assertk.coroutines.assertions/is-empty.html b/docs/assertk-coroutines/assertk.coroutines.assertions/is-empty.html index bcb51bbc..612b0884 100644 --- a/docs/assertk-coroutines/assertk.coroutines.assertions/is-empty.html +++ b/docs/assertk-coroutines/assertk.coroutines.assertions/is-empty.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

isEmpty

suspend fun Assert<Flow<*>>.isEmpty()

Asserts the flow is empty. Fails as soon as the flow delivers an element.

See also

diff --git a/docs/assertk-coroutines/assertk.coroutines.assertions/is-not-empty.html b/docs/assertk-coroutines/assertk.coroutines.assertions/is-not-empty.html index b9769931..62ae87d6 100644 --- a/docs/assertk-coroutines/assertk.coroutines.assertions/is-not-empty.html +++ b/docs/assertk-coroutines/assertk.coroutines.assertions/is-not-empty.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

isNotEmpty
suspend fun Assert<Flow<*>>.isNotEmpty()

Asserts the flow is not empty.

See also

diff --git a/docs/assertk-coroutines/assertk.coroutines.assertions/suspend-call.html b/docs/assertk-coroutines/assertk.coroutines.assertions/suspend-call.html index 3fee3d8f..893ca159 100644 --- a/docs/assertk-coroutines/assertk.coroutines.assertions/suspend-call.html +++ b/docs/assertk-coroutines/assertk.coroutines.assertions/suspend-call.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

suspendCall

suspend fun <T, P> Assert<T>.suspendCall(name: String, extract: suspend (T) -> P): Assert<P>

Returns an assert that asserts on the result of the given suspend call.

Parameters

name

The name of the suspend function you are calling.

extract

The suspend function to extract the property value out of the value of the current assert.

assertThat(person).suspendCall("name()", { it.name() }).isEqualTo("Sue")
diff --git a/docs/assertk-coroutines/index.html b/docs/assertk-coroutines/index.html index f2bf074c..6345b0b0 100644 --- a/docs/assertk-coroutines/index.html +++ b/docs/assertk-coroutines/index.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -85,7 +85,7 @@

Packages

diff --git a/docs/assertk-coroutines/navigation.html b/docs/assertk-coroutines/navigation.html index 57ddf5ec..80e06a20 100644 --- a/docs/assertk-coroutines/navigation.html +++ b/docs/assertk-coroutines/navigation.html @@ -1,9 +1,9 @@
-
+
-
+
@@ -102,7 +102,7 @@ tableOf()
-
+
diff --git a/docs/assertk/assertk.assertions.support/append-name.html b/docs/assertk/assertk.assertions.support/append-name.html index 15abada9..b8cb0c5d 100644 --- a/docs/assertk/assertk.assertions.support/append-name.html +++ b/docs/assertk/assertk.assertions.support/append-name.html @@ -41,7 +41,7 @@ assertk-project
-
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

appendName

fun Assert<*>.appendName(name: String, separator: String = ""): String

Constructs a new name appending to the existing name if available using the given separator.

Parameters

name

The new name to append to the current name, or the new name if there is no current one.

separator

The separator between the current name and the suffix if the current name exists.

diff --git a/docs/assertk/assertk.assertions.support/expected-list-diff.html b/docs/assertk/assertk.assertions.support/expected-list-diff.html index fd72477f..dd40c215 100644 --- a/docs/assertk/assertk.assertions.support/expected-list-diff.html +++ b/docs/assertk/assertk.assertions.support/expected-list-diff.html @@ -41,7 +41,7 @@ assertk-project
-
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

expectedListDi
fun <T> Assert<T>.expectedListDiff(expected: List<Any?>, actual: List<Any?>)

Fails an assert with an error message diffing the two given lists.

diff --git a/docs/assertk/assertk.assertions.support/expected.html b/docs/assertk/assertk.assertions.support/expected.html index be476a12..614423f5 100644 --- a/docs/assertk/assertk.assertions.support/expected.html +++ b/docs/assertk/assertk.assertions.support/expected.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

expected

fun <T> Assert<T>.expected(message: String, expected: Any? = NONE, actual: Any? = NONE): Nothing

Fails an assert with the given expected message. These should be in the format:

expected("to be:${show(expected)} but was:${show(actual)}")

-> "expected to be: <1> but was <2>"

diff --git a/docs/assertk/assertk.assertions.support/fail.html b/docs/assertk/assertk.assertions.support/fail.html index d04ae4f7..7a1ea910 100644 --- a/docs/assertk/assertk.assertions.support/fail.html +++ b/docs/assertk/assertk.assertions.support/fail.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

fail

fun <T> Assert<T>.fail(expected: Any?, actual: Any?)

Fails an assert with the given expected and actual values.

diff --git a/docs/assertk/assertk.assertions.support/index.html b/docs/assertk/assertk.assertions.support/index.html index e32436df..22f51978 100644 --- a/docs/assertk/assertk.assertions.support/index.html +++ b/docs/assertk/assertk.assertions.support/index.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -149,7 +149,7 @@

Functions

diff --git a/docs/assertk/assertk.assertions.support/show.html b/docs/assertk/assertk.assertions.support/show.html index c10d9ffb..e086cabc 100644 --- a/docs/assertk/assertk.assertions.support/show.html +++ b/docs/assertk/assertk.assertions.support/show.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

show

fun show(value: Any?, wrap: String = "<>"): String

Shows the primary value in a failure message.

Parameters

value

The value to display.

wrap

What characters to wrap around the value. This should be a pair of characters where the first is at the beginning and the second is at the end. For example, "()" will show (value). The default is "<>".

diff --git a/docs/assertk/assertk.assertions/--index--.html b/docs/assertk/assertk.assertions/--index--.html index 2c8ce80c..800b51d6 100644 --- a/docs/assertk/assertk.assertions/--index--.html +++ b/docs/assertk/assertk.assertions/--index--.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

index

fun <T> Assert<Array<T>>.index(index: Int): Assert<T>

Returns an assert that assertion on the value at the given index in the array.

assertThat(arrayOf(0, 1, 2)).index(1).isPositive()

fun <T> Assert<List<T>>.index(index: Int): Assert<T>

Returns an assert that assertion on the value at the given index in the list.

assertThat(listOf(0, 1, 2)).index(1).isPositive()
diff --git a/docs/assertk/assertk.assertions/any.html b/docs/assertk/assertk.assertions/any.html index 65536f63..eaa82450 100644 --- a/docs/assertk/assertk.assertions/any.html +++ b/docs/assertk/assertk.assertions/any.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -63,10 +63,10 @@

any

-
fun <E, T : Iterable<E>> Assert<T>.any(f: (Assert<E>) -> Unit)

Asserts on each item in the iterable, passing if any of the items pass. The given lambda will be run for each item.

assertThat(listOf(-1, -2, 1)).any { it.isPositive() }

fun <E, T : Sequence<E>> Assert<T>.any(f: (Assert<E>) -> Unit)

Asserts on each item in the sequence, passing if any of the items pass. The given lambda will be run for each item.

assertThat(sequenceOf(-1, -2, 1)).any { it.isPositive() }
+
fun <E, T : Iterable<E>> Assert<T>.any(f: (Assert<E>) -> Unit)

Asserts on each item in the iterable, passing if any of the items pass. The given lambda will be run for each item.

assert(listOf(-1, -2, 1)).any { it.isPositive() }

fun <E, T : Sequence<E>> Assert<T>.any(f: (Assert<E>) -> Unit)

Asserts on each item in the sequence, passing if any of the items pass. The given lambda will be run for each item.

assert(sequenceOf(-1, -2, 1)).any { it.isPositive() }
diff --git a/docs/assertk/assertk.assertions/at-least.html b/docs/assertk/assertk.assertions/at-least.html index 952fe860..24c139c0 100644 --- a/docs/assertk/assertk.assertions/at-least.html +++ b/docs/assertk/assertk.assertions/at-least.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -63,10 +63,10 @@

atLeast

-
fun <E, T : Iterable<E>> Assert<T>.atLeast(times: Int, f: (Assert<E>) -> Unit)

Asserts on each item in the iterable, passing if at least times items pass. The given lambda will be run for each item.

assertThat(listOf(-1, 1, 2)).atLeast(2) { it.isPositive() }

fun <E, T : Sequence<E>> Assert<T>.atLeast(times: Int, f: (Assert<E>) -> Unit)

Asserts on each item in the sequence, passing if at least times items pass. The given lambda will be run for each item.

assertThat(sequenceOf(-1, 1, 2)).atLeast(2) { it.isPositive() }
+
fun <E, T : Iterable<E>> Assert<T>.atLeast(times: Int, f: (Assert<E>) -> Unit)

Asserts on each item in the iterable, passing if at least times items pass. The given lambda will be run for each item.

assert(listOf(-1, 1, 2)).atLeast(2) { it.isPositive() }

fun <E, T : Sequence<E>> Assert<T>.atLeast(times: Int, f: (Assert<E>) -> Unit)

Asserts on each item in the sequence, passing if at least times items pass. The given lambda will be run for each item.

assert(sequenceOf(-1, 1, 2)).atLeast(2) { it.isPositive() }
diff --git a/docs/assertk/assertk.assertions/at-most.html b/docs/assertk/assertk.assertions/at-most.html index 114aeb73..f6e809ee 100644 --- a/docs/assertk/assertk.assertions/at-most.html +++ b/docs/assertk/assertk.assertions/at-most.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -63,10 +63,10 @@

atMost

-
fun <E, T : Iterable<E>> Assert<T>.atMost(times: Int, f: (Assert<E>) -> Unit)

Asserts on each item in the iterable, passing if at most times items pass. The given lambda will be run for each item.

assertThat(listOf(-2, -1, 1)).atMost(2) { it.isPositive() }

fun <E, T : Sequence<E>> Assert<T>.atMost(times: Int, f: (Assert<E>) -> Unit)

Asserts on each item in the sequence, passing if at most times items pass. The given lambda will be run for each item.

assertThat(sequenceOf(-2, -1, 1)).atMost(2) { it.isPositive() }
+
fun <E, T : Iterable<E>> Assert<T>.atMost(times: Int, f: (Assert<E>) -> Unit)

Asserts on each item in the iterable, passing if at most times items pass. The given lambda will be run for each item.

assert(listOf(-2, -1, 1)).atMost(2) { it.isPositive() }

fun <E, T : Sequence<E>> Assert<T>.atMost(times: Int, f: (Assert<E>) -> Unit)

Asserts on each item in the sequence, passing if at most times items pass. The given lambda will be run for each item.

assert(sequenceOf(-2, -1, 1)).atMost(2) { it.isPositive() }
diff --git a/docs/assertk/assertk.assertions/bytes.html b/docs/assertk/assertk.assertions/bytes.html index a213a3cc..f6685435 100644 --- a/docs/assertk/assertk.assertions/bytes.html +++ b/docs/assertk/assertk.assertions/bytes.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -68,7 +68,7 @@

bytes

Returns an assert on the file's contents as bytes.


Assert on file bytes

diff --git a/docs/assertk/assertk.assertions/cause.html b/docs/assertk/assertk.assertions/cause.html index 8c0c62b3..6cb9f776 100644 --- a/docs/assertk/assertk.assertions/cause.html +++ b/docs/assertk/assertk.assertions/cause.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

cause

Returns an assert on the throwable's cause.

diff --git a/docs/assertk/assertk.assertions/contains-all.html b/docs/assertk/assertk.assertions/contains-all.html index 92a19503..846d594d 100644 --- a/docs/assertk/assertk.assertions/contains-all.html +++ b/docs/assertk/assertk.assertions/contains-all.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

containsAll

fun Assert<Array<*>>.containsAll(vararg elements: Any?)

Deprecated

renamed to containsAtLeast

Replace with

containsAtLeast(*elements)

Asserts the array contains at least the expected elements, in any order. The array may also contain additional elements.

See also


fun Assert<Iterable<*>>.containsAll(vararg elements: Any?)

Deprecated

renamed to containsAtLeast

Replace with

containsAtLeast(*elements)

Asserts the iterable contains at least the expected elements, in any order. The collection may also contain additional elements.

See also


fun <K, V> Assert<Map<K, V>>.containsAll(vararg elements: Pair<K, V>)

Deprecated

renamed to containsAtLeast

Replace with

containsAtLeast(*elements)

Asserts the map contains at least the expected elements. The map may also contain additional elements.

See also


fun Assert<Sequence<*>>.containsAll(vararg elements: Any?)

Deprecated

renamed to containsAtLeast

Replace with

containsAtLeast(*elements)

Asserts the sequence contains at least the expected elements, in any order. The collection may also contain additional elements.

See also

diff --git a/docs/assertk/assertk.assertions/contains-at-least.html b/docs/assertk/assertk.assertions/contains-at-least.html index df198653..2d0b2803 100644 --- a/docs/assertk/assertk.assertions/contains-at-least.html +++ b/docs/assertk/assertk.assertions/contains-at-least.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

containsAtLeas
fun Assert<Array<*>>.containsAtLeast(vararg elements: Any?)

Asserts the array contains at least the expected elements, in any order. The array may also contain additional elements.

See also


fun Assert<Iterable<*>>.containsAtLeast(vararg elements: Any?)

Asserts the iterable contains at least the expected elements, in any order. The collection may also contain additional elements.

See also


fun <K, V> Assert<Map<K, V>>.containsAtLeast(vararg elements: Pair<K, V>)

Asserts the map contains at least the expected elements. The map may also contain additional elements.

See also


fun Assert<Sequence<*>>.containsAtLeast(vararg elements: Any?)

Asserts the sequence contains at least the expected elements, in any order. The collection may also contain additional elements.

See also

diff --git a/docs/assertk/assertk.assertions/contains-exactly-in-any-order.html b/docs/assertk/assertk.assertions/contains-exactly-in-any-order.html index fe5c85a2..834a3ff4 100644 --- a/docs/assertk/assertk.assertions/contains-exactly-in-any-order.html +++ b/docs/assertk/assertk.assertions/contains-exactly-in-any-order.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

containsExactlyIn
fun Assert<Iterable<*>>.containsExactlyInAnyOrder(vararg elements: Any?)

Asserts the iterable contains exactly the expected elements, in any order. Each value in expected must correspond to a matching value in actual, and visa-versa.

1, 2 containsExactlyInAnyOrder 2, 1 passes 1, 2, 2 containsExactlyInAnyOrder 2, 1 fails 1, 2 containsExactlyInAnyOrder 2, 2, 1 fails

See also


fun Assert<Sequence<*>>.containsExactlyInAnyOrder(vararg elements: Any?)

Asserts the sequence contains exactly the expected elements, in any order. Each value in expected must correspond to a matching value in actual, and visa-versa.

1, 2 containsExactlyInAnyOrder 2, 1 passes 1, 2, 2 containsExactlyInAnyOrder 2, 1 fails 1, 2 containsExactlyInAnyOrder 2, 2, 1 fails

See also

diff --git a/docs/assertk/assertk.assertions/contains-exactly.html b/docs/assertk/assertk.assertions/contains-exactly.html index d1a9cc55..e157f459 100644 --- a/docs/assertk/assertk.assertions/contains-exactly.html +++ b/docs/assertk/assertk.assertions/contains-exactly.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

containsExactly
fun Assert<Array<*>>.containsExactly(vararg elements: Any?)

Asserts the array contains exactly the expected elements. They must be in the same order and there must not be any extra elements.

See also


fun Assert<List<*>>.containsExactly(vararg elements: Any?)

Asserts the list contains exactly the expected elements. They must be in the same order and there must not be any extra elements.

1, 2 containsExactly 2, 1 fails 1, 2, 2 containsExactly 2, 1 fails 1, 2 containsExactly 1, 2, 2 fails

See also


fun Assert<Sequence<*>>.containsExactly(vararg elements: Any?)

Asserts the sequence contains exactly the expected elements. They must be in the same order and there must not be any extra elements.

1, 2 containsExactly 2, 1 fails 1, 2, 2 containsExactly 2, 1 fails 1, 2 containsExactly 1, 2, 2 fails

See also

diff --git a/docs/assertk/assertk.assertions/contains-match.html b/docs/assertk/assertk.assertions/contains-match.html index 73ee9585..6b868271 100644 --- a/docs/assertk/assertk.assertions/contains-match.html +++ b/docs/assertk/assertk.assertions/contains-match.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

containsMatch

Asserts the char sequence contains a match of the regular expression.

diff --git a/docs/assertk/assertk.assertions/contains-none.html b/docs/assertk/assertk.assertions/contains-none.html index 6aba688f..5a71777b 100644 --- a/docs/assertk/assertk.assertions/contains-none.html +++ b/docs/assertk/assertk.assertions/contains-none.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

containsNone

fun Assert<Array<*>>.containsNone(vararg elements: Any?)

Asserts the collection does not contain any of the expected elements.

See also


fun Assert<Iterable<*>>.containsNone(vararg elements: Any?)

Asserts the iterable does not contain any of the expected elements.

See also


fun <K, V> Assert<Map<K, V>>.containsNone(vararg elements: Pair<K, V>)

Asserts the map does not contain any of the expected elements.

See also


fun Assert<Sequence<*>>.containsNone(vararg elements: Any?)

Asserts the sequence does not contain any of the expected elements.

See also

diff --git a/docs/assertk/assertk.assertions/contains-only.html b/docs/assertk/assertk.assertions/contains-only.html index a41e6dc9..8d88c3f5 100644 --- a/docs/assertk/assertk.assertions/contains-only.html +++ b/docs/assertk/assertk.assertions/contains-only.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

containsOnly

fun Assert<Array<*>>.containsOnly(vararg elements: Any?)

Asserts the array contains only the expected elements, in any order.

See also


fun Assert<Iterable<*>>.containsOnly(vararg elements: Any?)

Asserts the iterable contains only the expected elements, in any order. Duplicate values in the expected and actual are ignored.

1, 2 containsOnly 2, 1 passes 1, 2, 2 containsOnly 2, 1 passes 1, 2 containsOnly 2, 2, 1 passes

See also


fun <K, V> Assert<Map<K, V>>.containsOnly(vararg elements: Pair<K, V>)

Asserts the map contains only the expected elements. There must not be any extra elements.

See also


fun Assert<Sequence<*>>.containsOnly(vararg elements: Any?)

Asserts the sequence contains only the expected elements, in any order. Duplicate values in the expected and actual are ignored.

1, 2 containsOnly 2, 1 passes 1, 2, 2 containsOnly 2, 1 passes 1, 2 containsOnly 2, 2, 1 passes

See also

diff --git a/docs/assertk/assertk.assertions/contains-sub-list.html b/docs/assertk/assertk.assertions/contains-sub-list.html index b46fbe47..6cc9a27e 100644 --- a/docs/assertk/assertk.assertions/contains-sub-list.html +++ b/docs/assertk/assertk.assertions/contains-sub-list.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

containsSubLis
fun Assert<List<*>>.containsSubList(sublist: List<*>)

Asserts that a collection contains a subset of items the same order, but may have other items in the list.

Usages:

  • [] containsSubList [1,2,3] fails

  • [1,2,3] containsSubList [4,5,6] fails

  • [1,2,3] containsSubList [] pass

  • [] containsSubList [] pass

  • [1,2] containsSubList [1,2,3] pass

  • [2,3,4] containsSubList [1,2,3,4,5] pass

Parameters

sublist

The list of items the actual list should contain in the same order.

diff --git a/docs/assertk/assertk.assertions/contains.html b/docs/assertk/assertk.assertions/contains.html index 7b835784..8a25818f 100644 --- a/docs/assertk/assertk.assertions/contains.html +++ b/docs/assertk/assertk.assertions/contains.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

contains

fun Assert<Array<*>>.contains(element: Any?)

Asserts the array contains the expected element, using in.

See also


fun Assert<CharSequence>.contains(expected: CharSequence, ignoreCase: Boolean = false)

Asserts the char sequence contains the expected subsequence.

Parameters

ignoreCase

true to compare ignoring case, the default if false.


fun Assert<CharSequence>.contains(vararg expected: CharSequence, ignoreCase: Boolean = false)

Asserts the char sequence contains the expected subsequence(s).

Parameters

ignoreCase

true to compare ignoring case, the default if false.


fun Assert<CharSequence>.contains(expected: Iterable<CharSequence>, ignoreCase: Boolean = false)

Asserts the char sequence contains the expected char sequences.

Parameters

ignoreCase

true to compare ignoring case, the default if false.


fun Assert<Iterable<*>>.contains(element: Any?)

Asserts the iterable contains the expected element, using in.

See also


fun <K, V> Assert<Map<K, V>>.contains(key: K, value: V)
fun <K, V> Assert<Map<K, V>>.contains(element: Pair<K, V>)

Asserts the map contains the expected key-value pair.

See also


fun Assert<Sequence<*>>.contains(element: Any?)

Asserts the sequence contains the expected element, using in.

See also

diff --git a/docs/assertk/assertk.assertions/corresponds.html b/docs/assertk/assertk.assertions/corresponds.html index e68ecff3..4f1e7515 100644 --- a/docs/assertk/assertk.assertions/corresponds.html +++ b/docs/assertk/assertk.assertions/corresponds.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

corresponds

fun <T, E> Assert<T>.corresponds(expected: E, correspondence: (T, E) -> Boolean)

Asserts the value corresponds to the expected one using the given correspondence function to compare them. This is useful when the objects don't have an equals implementation.

See also

diff --git a/docs/assertk/assertk.assertions/does-not-contain-key.html b/docs/assertk/assertk.assertions/does-not-contain-key.html index 0d614173..a214cb9c 100644 --- a/docs/assertk/assertk.assertions/does-not-contain-key.html +++ b/docs/assertk/assertk.assertions/does-not-contain-key.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

doesNotContain
fun <K, V> Assert<Map<K, V>>.doesNotContainKey(key: K)

Asserts the map does not contain the expected key.

diff --git a/docs/assertk/assertk.assertions/does-not-contain.html b/docs/assertk/assertk.assertions/does-not-contain.html index f245d9d2..c70a4fec 100644 --- a/docs/assertk/assertk.assertions/does-not-contain.html +++ b/docs/assertk/assertk.assertions/does-not-contain.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

doesNotContain
fun Assert<Array<*>>.doesNotContain(element: Any?)

Asserts the array does not contain the expected element, using !in.

See also


fun Assert<CharSequence>.doesNotContain(expected: CharSequence, ignoreCase: Boolean = false)

Asserts the char sequence does not contain the specified char sequence.

Parameters

ignoreCase

true to compare ignoring case, the default if false.


fun Assert<CharSequence>.doesNotContain(vararg expected: CharSequence, ignoreCase: Boolean = false)

Asserts the char sequence does not contain the specified char sequence(s).

Parameters

ignoreCase

true to compare ignoring case, the default if false.


fun Assert<CharSequence>.doesNotContain(expected: Iterable<CharSequence>, ignoreCase: Boolean = false)

Asserts the char sequence does not contain the specified char sequences.

Parameters

ignoreCase

true to compare ignoring case, the default if false.


fun Assert<Iterable<*>>.doesNotContain(element: Any?)

Asserts the iterable does not contain the expected element, using !in.

See also


fun <K, V> Assert<Map<K, V>>.doesNotContain(key: K, value: V)
fun <K, V> Assert<Map<K, V>>.doesNotContain(element: Pair<K, V>)

Asserts the map does not contain the expected key-value pair.

See also


fun Assert<Sequence<*>>.doesNotContain(element: Any?)

Asserts the sequence does not contain the expected element, using !n.

See also

diff --git a/docs/assertk/assertk.assertions/does-not-correspond.html b/docs/assertk/assertk.assertions/does-not-correspond.html index 4fb91377..17175188 100644 --- a/docs/assertk/assertk.assertions/does-not-correspond.html +++ b/docs/assertk/assertk.assertions/does-not-correspond.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

doesNotCorresp
fun <T, E> Assert<T>.doesNotCorrespond(expected: E, correspondence: (T, E) -> Boolean)

Asserts the value does not correspond to the expected one using the given correspondence function to compare them. This is useful when the objects don't have an equals implementation.

See also

diff --git a/docs/assertk/assertk.assertions/does-not-have-class.html b/docs/assertk/assertk.assertions/does-not-have-class.html index ed5f9bf1..85708904 100644 --- a/docs/assertk/assertk.assertions/does-not-have-class.html +++ b/docs/assertk/assertk.assertions/does-not-have-class.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -69,7 +69,7 @@

doesNotHave
inline fun <T : Any> Assert<Any>.doesNotHaveClass()

Asserts the value does not have the expected kotlin class. This is an exact match, so assertThat("test").doesNotHaveClass<String>() fails but assertThat("test").doesNotHaveClass<Any>() is successful.

See also


fun <T : Any> Assert<T>.doesNotHaveClass(kclass: KClass<out T>)

Asserts the value does not have the expected kotlin class. This is an exact match, so assertThat("test").doesNotHaveClass(String::class) fails but assertThat("test").doesNotHaveClass(Any::class) is successful.

See also

fun <T : Any> Assert<T>.doesNotHaveClass(jclass: Class<out T>)

Asserts the value does not have the expected java class. This is an exact match, so assertThat("test").doesNotHaveClass(String::class.java) is fails but assertThat("test").doesNotHaveClass(Any::class.java) is successful.

See also

diff --git a/docs/assertk/assertk.assertions/each.html b/docs/assertk/assertk.assertions/each.html index 7a5cf5e2..d1fdd028 100644 --- a/docs/assertk/assertk.assertions/each.html +++ b/docs/assertk/assertk.assertions/each.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

each

fun <T> Assert<Array<T>>.each(f: (Assert<T>) -> Unit)

Asserts on each item in the array. The given lambda will be run for each item.

assertThat(arrayOf("one", "two")).each {
it.hasLength(3)
}

fun <E> Assert<Iterable<E>>.each(f: (Assert<E>) -> Unit)

Asserts on each item in the iterable. The given lambda will be run for each item.

assertThat(listOf("one", "two")).each {
it.hasLength(3)
}

fun <E> Assert<Sequence<E>>.each(f: (Assert<E>) -> Unit)

Asserts on each item in the sequence. The given lambda will be run for each item.

assertThat(sequenceOf("one", "two")).each {
it.hasLength(3)
}
diff --git a/docs/assertk/assertk.assertions/ends-with.html b/docs/assertk/assertk.assertions/ends-with.html index 1b3ffc91..84a1f242 100644 --- a/docs/assertk/assertk.assertions/ends-with.html +++ b/docs/assertk/assertk.assertions/ends-with.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

endsWith

fun Assert<CharSequence>.endsWith(other: CharSequence, ignoreCase: Boolean = false)

Asserts the char sequence ends with the expected char sequence.

Parameters

ignoreCase

true to compare ignoring case, the default if false.

See also


fun Assert<List<*>>.endsWith(vararg elements: Any?)

Asserts the list ends with the expected elements, in the same order.

1, 2, 3 endsWith 2, 3 pass 1, 2, 3 endsWith 3, 2 fails 1, 2, 3 endsWith 1, 2, 3 pass [] endsWith 1, 2 fails 1, 2 endsWith [] pass [] endsWith [] pass

See also

diff --git a/docs/assertk/assertk.assertions/exactly.html b/docs/assertk/assertk.assertions/exactly.html index d8b16514..cdbcc293 100644 --- a/docs/assertk/assertk.assertions/exactly.html +++ b/docs/assertk/assertk.assertions/exactly.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -63,10 +63,10 @@

exactly

-
fun <E, T : Iterable<E>> Assert<T>.exactly(times: Int, f: (Assert<E>) -> Unit)

Asserts on each item in the iterable, passing if exactly times items pass. The given lambda will be run for each item.

assertThat(listOf(-1, 1, 2)).exactly(2) { it.isPositive() }

fun <E, T : Sequence<E>> Assert<T>.exactly(times: Int, f: (Assert<E>) -> Unit)

Asserts on each item in the sequence, passing if exactly times items pass. The given lambda will be run for each item.

assertThat(sequenceOf(-1, 1, 2)).exactly(2) { it.isPositive() }
+
fun <E, T : Iterable<E>> Assert<T>.exactly(times: Int, f: (Assert<E>) -> Unit)

Asserts on each item in the iterable, passing if exactly times items pass. The given lambda will be run for each item.

assert(listOf(-1, 1, 2)).exactly(2) { it.isPositive() }

fun <E, T : Sequence<E>> Assert<T>.exactly(times: Int, f: (Assert<E>) -> Unit)

Asserts on each item in the sequence, passing if exactly times items pass. The given lambda will be run for each item.

assert(sequenceOf(-1, 1, 2)).exactly(2) { it.isPositive() }
diff --git a/docs/assertk/assertk.assertions/exists.html b/docs/assertk/assertk.assertions/exists.html index 95375d09..43a2d0ce 100644 --- a/docs/assertk/assertk.assertions/exists.html +++ b/docs/assertk/assertk.assertions/exists.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -68,7 +68,7 @@

exists

Asserts the file exists.


fun Assert<Path>.exists(vararg options: LinkOption)

Assert that the path exists.

Parameters

options

indicating how symbolic links are handled

diff --git a/docs/assertk/assertk.assertions/extension.html b/docs/assertk/assertk.assertions/extension.html index 57dcaa65..e75f8ac2 100644 --- a/docs/assertk/assertk.assertions/extension.html +++ b/docs/assertk/assertk.assertions/extension.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -68,7 +68,7 @@

extension

Returns an assert on the file's extension.

diff --git a/docs/assertk/assertk.assertions/extracting.html b/docs/assertk/assertk.assertions/extracting.html index c35fa069..1a1e558e 100644 --- a/docs/assertk/assertk.assertions/extracting.html +++ b/docs/assertk/assertk.assertions/extracting.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

extracting

fun <E, R> Assert<Array<E>>.extracting(f1: (E) -> R): Assert<List<R>>

Extracts a value of from each item in the array, allowing you to assert on a list of those values.

assertThat(people)
.extracting(Person::name)
.containsExactly("Sue", "Bob")

fun <E, R1, R2> Assert<Array<E>>.extracting(f1: (E) -> R1, f2: (E) -> R2): Assert<List<Pair<R1, R2>>>

Extracts two values of from each item in the array, allowing you to assert on a list of paris of those values.

assertThat(people)
.extracting(Person::name, Person::age)
.containsExactly("Sue" to 20, "Bob" to 22)

fun <E, R1, R2, R3> Assert<Array<E>>.extracting(f1: (E) -> R1, f2: (E) -> R2, f3: (E) -> R3): Assert<List<Triple<R1, R2, R3>>>

Extracts three values from each item in the array, allowing you to assert on a list of triples of those values.

assertThat(people)
.extracting(Person::name, Person::age, Person::address)
.contains(Triple("Sue", 20, "123 Street"), Triple("Bob", 22, "456 Street")

fun <E, R> Assert<Iterable<E>>.extracting(f1: (E) -> R): Assert<List<R>>

Extracts a value of from each item in the iterable, allowing you to assert on a list of those values.

assertThat(people)
.extracting(Person::name)
.containsOnly("Sue", "Bob")

fun <E, R1, R2> Assert<Iterable<E>>.extracting(f1: (E) -> R1, f2: (E) -> R2): Assert<List<Pair<R1, R2>>>

Extracts two values of from each item in the iterable, allowing you to assert on a list of paris of those values.

assertThat(people)
.extracting(Person::name, Person::age)
.containsOnly("Sue" to 20, "Bob" to 22)

fun <E, R1, R2, R3> Assert<Iterable<E>>.extracting(f1: (E) -> R1, f2: (E) -> R2, f3: (E) -> R3): Assert<List<Triple<R1, R2, R3>>>

Extracts three values from each item in the iterable, allowing you to assert on a list of triples of those values.

assertThat(people)
.extracting(Person::name, Person::age, Person::address)
.contains(Triple("Sue", 20, "123 Street"), Triple("Bob", 22, "456 Street")

fun <E, R> Assert<Sequence<E>>.extracting(f1: (E) -> R): Assert<Sequence<R>>

Extracts a value of from each item in the sequence, allowing you to assert on a list of those values.

assertThat(people)
.extracting(Person::name)
.containsExactly("Sue", "Bob")

fun <E, R1, R2> Assert<Sequence<E>>.extracting(f1: (E) -> R1, f2: (E) -> R2): Assert<Sequence<Pair<R1, R2>>>

Extracts two values of from each item in the sequence, allowing you to assert on a list of paris of those values.

assertThat(people)
.extracting(Person::name, Person::age)
.containsExactly("Sue" to 20, "Bob" to 22)

fun <E, R1, R2, R3> Assert<Sequence<E>>.extracting(f1: (E) -> R1, f2: (E) -> R2, f3: (E) -> R3): Assert<Sequence<Triple<R1, R2, R3>>>

Extracts three values from each item in the sequence, allowing you to assert on a list of triples of those values.

assertThat(people)
.extracting(Person::name, Person::age, Person::address)
.contains(Triple("Sue", 20, "123 Street"), Triple("Bob", 22, "456 Street")
diff --git a/docs/assertk/assertk.assertions/first.html b/docs/assertk/assertk.assertions/first.html index 548c1d36..dba6f773 100644 --- a/docs/assertk/assertk.assertions/first.html +++ b/docs/assertk/assertk.assertions/first.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

first

fun <E, T : Iterable<E>> Assert<T>.first(): Assert<E>

Asserts the iterable is not empty, and returns an assert on the first element.

diff --git a/docs/assertk/assertk.assertions/has-cause.html b/docs/assertk/assertk.assertions/has-cause.html index dcde5710..f8d70f26 100644 --- a/docs/assertk/assertk.assertions/has-cause.html +++ b/docs/assertk/assertk.assertions/has-cause.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

hasCause

Asserts the throwable is similar to the expected cause, checking the type and message.

See also

diff --git a/docs/assertk/assertk.assertions/has-class.html b/docs/assertk/assertk.assertions/has-class.html index 178861f7..205ee6cb 100644 --- a/docs/assertk/assertk.assertions/has-class.html +++ b/docs/assertk/assertk.assertions/has-class.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -69,7 +69,7 @@

hasClass

inline fun <T : Any> Assert<Any>.hasClass()

Asserts the value has the expected kotlin class. This is an exact match, so assertThat("test").hasClass<String>() is successful but assertThat("test").hasClass<Any>() fails.

See also


fun <T : Any> Assert<T>.hasClass(kclass: KClass<out T>)

Asserts the value has the expected kotlin class. This is an exact match, so assertThat("test").hasClass(String::class) is successful but assertThat("test").hasClass(Any::class) fails.

See also

fun <T : Any> Assert<T>.hasClass(jclass: Class<out T>)

Asserts the value has the expected java class. This is an exact match, so assertThat("test").hasClass(String::class.java) is successful but assertThat("test").hasClass(Any::class.java) fails.

See also

diff --git a/docs/assertk/assertk.assertions/has-direct-child.html b/docs/assertk/assertk.assertions/has-direct-child.html index 3d478be3..9242ddd8 100644 --- a/docs/assertk/assertk.assertions/has-direct-child.html +++ b/docs/assertk/assertk.assertions/has-direct-child.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -68,7 +68,7 @@

hasDirectChild
fun Assert<File>.hasDirectChild(expected: File)

Asserts the file has the expected direct child.

diff --git a/docs/assertk/assertk.assertions/has-extension.html b/docs/assertk/assertk.assertions/has-extension.html index c233fe9e..9754663b 100644 --- a/docs/assertk/assertk.assertions/has-extension.html +++ b/docs/assertk/assertk.assertions/has-extension.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -68,7 +68,7 @@

hasExtension

fun Assert<File>.hasExtension(expected: String)

Asserts the file has the expected extension.

diff --git a/docs/assertk/assertk.assertions/has-hash-code.html b/docs/assertk/assertk.assertions/has-hash-code.html index 55ad79e5..79c6c2cc 100644 --- a/docs/assertk/assertk.assertions/has-hash-code.html +++ b/docs/assertk/assertk.assertions/has-hash-code.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

hasHashCode
fun Assert<Any>.hasHashCode(hashCode: Int)

Asserts the value has the expected hash code from it's hashCode.

diff --git a/docs/assertk/assertk.assertions/has-length.html b/docs/assertk/assertk.assertions/has-length.html index 1a2fe82a..cc124b19 100644 --- a/docs/assertk/assertk.assertions/has-length.html +++ b/docs/assertk/assertk.assertions/has-length.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

hasLength

Asserts the char sequence has the expected length.

diff --git a/docs/assertk/assertk.assertions/has-line-count.html b/docs/assertk/assertk.assertions/has-line-count.html index 4e6c73e6..14310502 100644 --- a/docs/assertk/assertk.assertions/has-line-count.html +++ b/docs/assertk/assertk.assertions/has-line-count.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

hasLineCount

Asserts the char sequence has the expected number of lines.

diff --git a/docs/assertk/assertk.assertions/has-message.html b/docs/assertk/assertk.assertions/has-message.html index e379d954..af70c09c 100644 --- a/docs/assertk/assertk.assertions/has-message.html +++ b/docs/assertk/assertk.assertions/has-message.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

hasMessage

Asserts the throwable has the expected message.

diff --git a/docs/assertk/assertk.assertions/has-name.html b/docs/assertk/assertk.assertions/has-name.html index a373ae79..ff15c909 100644 --- a/docs/assertk/assertk.assertions/has-name.html +++ b/docs/assertk/assertk.assertions/has-name.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -68,7 +68,7 @@

hasName

fun Assert<File>.hasName(expected: String)

Asserts the file has the expected name.

diff --git a/docs/assertk/assertk.assertions/has-no-cause.html b/docs/assertk/assertk.assertions/has-no-cause.html index bb5dd74b..83b12da0 100644 --- a/docs/assertk/assertk.assertions/has-no-cause.html +++ b/docs/assertk/assertk.assertions/has-no-cause.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

hasNoCause

Asserts the throwable has no cause.

See also

diff --git a/docs/assertk/assertk.assertions/has-not-same-content-as.html b/docs/assertk/assertk.assertions/has-not-same-content-as.html index 55889a71..8a9c5ece 100644 --- a/docs/assertk/assertk.assertions/has-not-same-content-as.html +++ b/docs/assertk/assertk.assertions/has-not-same-content-as.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -68,7 +68,7 @@

hasNotSame

Asserts that the actual stream has a different content as the expected stream. Both InputStreams will be closed by the assertion.

Parameters

expected

which content is compared to the actual one

diff --git a/docs/assertk/assertk.assertions/has-parent.html b/docs/assertk/assertk.assertions/has-parent.html index 4c039b46..233a4464 100644 --- a/docs/assertk/assertk.assertions/has-parent.html +++ b/docs/assertk/assertk.assertions/has-parent.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -68,7 +68,7 @@

hasParent

fun Assert<File>.hasParent(expected: String)

Asserts the file has the expected parent path.

diff --git a/docs/assertk/assertk.assertions/has-path.html b/docs/assertk/assertk.assertions/has-path.html index ae05a38d..0dd58068 100644 --- a/docs/assertk/assertk.assertions/has-path.html +++ b/docs/assertk/assertk.assertions/has-path.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -68,7 +68,7 @@

hasPath

fun Assert<File>.hasPath(expected: String)

Asserts the file has the expected path.

diff --git a/docs/assertk/assertk.assertions/has-root-cause.html b/docs/assertk/assertk.assertions/has-root-cause.html index 6d3879b7..e6b6a3ee 100644 --- a/docs/assertk/assertk.assertions/has-root-cause.html +++ b/docs/assertk/assertk.assertions/has-root-cause.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

hasRootCause

Asserts the throwable is similar to the expected root cause, checking the type and message.

diff --git a/docs/assertk/assertk.assertions/has-same-content-as.html b/docs/assertk/assertk.assertions/has-same-content-as.html index fce3a0dc..1614bfb4 100644 --- a/docs/assertk/assertk.assertions/has-same-content-as.html +++ b/docs/assertk/assertk.assertions/has-same-content-as.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -68,7 +68,7 @@

hasSameContent

Asserts that the actual stream has the same content as the expected stream. Both InputStreams will be closed by the assertion.

Parameters

expected

which content is compared to the actual one

diff --git a/docs/assertk/assertk.assertions/has-same-length-as.html b/docs/assertk/assertk.assertions/has-same-length-as.html index 7911ded7..941a40f6 100644 --- a/docs/assertk/assertk.assertions/has-same-length-as.html +++ b/docs/assertk/assertk.assertions/has-same-length-as.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

hasSameLength

Asserts the char sequence has the same length as the expected one.

diff --git a/docs/assertk/assertk.assertions/has-same-size-as.html b/docs/assertk/assertk.assertions/has-same-size-as.html index b872702c..d3d09383 100644 --- a/docs/assertk/assertk.assertions/has-same-size-as.html +++ b/docs/assertk/assertk.assertions/has-same-size-as.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

hasSameSize
fun Assert<Array<*>>.hasSameSizeAs(other: Array<*>)

Asserts the array has the same size as the expected array.


Asserts the collection has the same size as the expected collection.


fun Assert<Map<*, *>>.hasSameSizeAs(other: Map<*, *>)

Asserts the map has the same size as the expected map.

diff --git a/docs/assertk/assertk.assertions/has-size.html b/docs/assertk/assertk.assertions/has-size.html index a6dad1f4..bd854f07 100644 --- a/docs/assertk/assertk.assertions/has-size.html +++ b/docs/assertk/assertk.assertions/has-size.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

hasSize

fun Assert<Array<*>>.hasSize(size: Int)

Asserts the array has the expected size.


fun Assert<Collection<*>>.hasSize(size: Int)
fun Assert<Map<*, *>>.hasSize(size: Int)

Asserts the collection has the expected size.

diff --git a/docs/assertk/assertk.assertions/has-text.html b/docs/assertk/assertk.assertions/has-text.html index c8101020..f981c772 100644 --- a/docs/assertk/assertk.assertions/has-text.html +++ b/docs/assertk/assertk.assertions/has-text.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -68,7 +68,7 @@

hasText

fun Assert<File>.hasText(expected: String, charset: Charset = Charsets.UTF_8)

Asserts the file contains exactly the expected text (and nothing else).

Parameters

charset

The character set of the file, default is Charsets.UTF_8

See also

hasBytes
diff --git a/docs/assertk/assertk.assertions/has-to-string.html b/docs/assertk/assertk.assertions/has-to-string.html index 5a126401..402228c5 100644 --- a/docs/assertk/assertk.assertions/has-to-string.html +++ b/docs/assertk/assertk.assertions/has-to-string.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

hasToString
fun Assert<Any?>.hasToString(string: String)

Asserts the value has the expected string from it's toString.

diff --git a/docs/assertk/assertk.assertions/has-value.html b/docs/assertk/assertk.assertions/has-value.html index 50da8633..88c4d4c2 100644 --- a/docs/assertk/assertk.assertions/has-value.html +++ b/docs/assertk/assertk.assertions/has-value.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -68,7 +68,7 @@

hasValue

fun <T> Assert<Optional<T>>.hasValue(expected: T)

Asserts the optional has the expected value.

diff --git a/docs/assertk/assertk.assertions/hash-code-fun.html b/docs/assertk/assertk.assertions/hash-code-fun.html index 7176a31f..64e11e22 100644 --- a/docs/assertk/assertk.assertions/hash-code-fun.html +++ b/docs/assertk/assertk.assertions/hash-code-fun.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

hashCodeFun

Returns an assert on the hasCode method of the value.

diff --git a/docs/assertk/assertk.assertions/index.html b/docs/assertk/assertk.assertions/index.html index 81b46cd4..b2ffe980 100644 --- a/docs/assertk/assertk.assertions/index.html +++ b/docs/assertk/assertk.assertions/index.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -1876,7 +1876,7 @@

Functions

diff --git a/docs/assertk/assertk.assertions/is-between.html b/docs/assertk/assertk.assertions/is-between.html index 3294a5ff..7fbbaf3f 100644 --- a/docs/assertk/assertk.assertions/is-between.html +++ b/docs/assertk/assertk.assertions/is-between.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

isBetween

fun <A, B : Comparable<A>> Assert<B>.isBetween(start: A, end: A)

Asserts the value is between the expected start and end values, inclusive.

See also

diff --git a/docs/assertk/assertk.assertions/is-close-to.html b/docs/assertk/assertk.assertions/is-close-to.html index 90283767..3fb4aaf4 100644 --- a/docs/assertk/assertk.assertions/is-close-to.html +++ b/docs/assertk/assertk.assertions/is-close-to.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

isCloseTo
fun Assert<Float>.isCloseTo(value: Float, delta: Float)
fun Assert<Double>.isCloseTo(value: Double, delta: Double)

Asserts the value if it is close to the expected value with given delta.

diff --git a/docs/assertk/assertk.assertions/is-data-class-equal-to.html b/docs/assertk/assertk.assertions/is-data-class-equal-to.html index 30c7ca5d..45d1e685 100644 --- a/docs/assertk/assertk.assertions/is-data-class-equal-to.html +++ b/docs/assertk/assertk.assertions/is-data-class-equal-to.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -68,7 +68,7 @@

isDataClass
fun <T : Any> Assert<T>.isDataClassEqualTo(expected: T)

Like isEqualTo but reports exactly which properties differ. Only supports data classes. Note: you should not use this if your data class has a custom Any.equals since it can be misleading.

diff --git a/docs/assertk/assertk.assertions/is-directory.html b/docs/assertk/assertk.assertions/is-directory.html index 8cd28284..5c573647 100644 --- a/docs/assertk/assertk.assertions/is-directory.html +++ b/docs/assertk/assertk.assertions/is-directory.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -68,7 +68,7 @@

isDirectory

Asserts the file is a directory.

See also


fun Assert<Path>.isDirectory(vararg options: LinkOption)

Assert that the path is a directory.

Parameters

options

indicating how symbolic links are handled

diff --git a/docs/assertk/assertk.assertions/is-empty.html b/docs/assertk/assertk.assertions/is-empty.html index 55196de1..072ad5ef 100644 --- a/docs/assertk/assertk.assertions/is-empty.html +++ b/docs/assertk/assertk.assertions/is-empty.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -69,7 +69,7 @@

isEmpty

fun Assert<Array<*>>.isEmpty()

Asserts the array is empty.

See also


Asserts the char sequence is empty.

See also


fun Assert<Map<*, *>>.isEmpty()

Asserts the collection is empty.

See also


Asserts the iterable is empty.

See also


Asserts the sequence is empty.

See also

Asserts optional's value is not present.

See also

diff --git a/docs/assertk/assertk.assertions/is-equal-by-comparing-to.html b/docs/assertk/assertk.assertions/is-equal-by-comparing-to.html index 53ec2804..26749283 100644 --- a/docs/assertk/assertk.assertions/is-equal-by-comparing-to.html +++ b/docs/assertk/assertk.assertions/is-equal-by-comparing-to.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -69,7 +69,7 @@

isEqualBy
fun <T : Comparable<T>> Assert<T>.isEqualByComparingTo(expected: T)

Asserts that value is equal when comparing using {@link Comparable#compareTo(Object)}.

Asserts that actual.compareTo(BigDecimal(expected) == 0.

diff --git a/docs/assertk/assertk.assertions/is-equal-to-ignoring-given-properties.html b/docs/assertk/assertk.assertions/is-equal-to-ignoring-given-properties.html index 09b54c2a..5f0f5395 100644 --- a/docs/assertk/assertk.assertions/is-equal-to-ignoring-given-properties.html +++ b/docs/assertk/assertk.assertions/is-equal-to-ignoring-given-properties.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -68,7 +68,7 @@

isEqualTo
fun <T : Any> Assert<T>.isEqualToIgnoringGivenProperties(other: T, vararg properties: KProperty1<T, Any?>)

Returns an assert that compares all accessible properties except the given properties on the calling class.

Parameters

other

Other value to compare to

properties

properties of the type with which been ignored

assertThat(person).isEqualToIgnoringGivenProperties(other, Person::name, Person::age)
diff --git a/docs/assertk/assertk.assertions/is-equal-to-with-given-properties.html b/docs/assertk/assertk.assertions/is-equal-to-with-given-properties.html index df6997fb..ffa1fb98 100644 --- a/docs/assertk/assertk.assertions/is-equal-to-with-given-properties.html +++ b/docs/assertk/assertk.assertions/is-equal-to-with-given-properties.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

isEqualTo
fun <T> Assert<T>.isEqualToWithGivenProperties(other: T, vararg properties: KProperty1<T, Any?>)

Returns an assert that compares only the given properties on the calling class

Parameters

other

Other value to compare to

properties

properties of the type with which to compare

assertThat(person).isEqualToWithGivenProperties(other, Person::name, Person::age)

diff --git a/docs/assertk/assertk.assertions/is-equal-to.html b/docs/assertk/assertk.assertions/is-equal-to.html index 7e9ee6e6..ccf9dee0 100644 --- a/docs/assertk/assertk.assertions/is-equal-to.html +++ b/docs/assertk/assertk.assertions/is-equal-to.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

isEqualTo
fun <T> Assert<T>.isEqualTo(expected: T)

Asserts the value is equal to the expected one, using ==.

See also


fun <T> Assert<Array<T>>.isEqualTo(expected: Array<T>)

Asserts the array contents are equal to the expected one, using contentDeepEquals.

See also


fun Assert<String?>.isEqualTo(other: String?, ignoreCase: Boolean = false)

Asserts the string is equal to the expected string.

Parameters

ignoreCase

true to compare ignoring case, the default if false.

See also

diff --git a/docs/assertk/assertk.assertions/is-executable.html b/docs/assertk/assertk.assertions/is-executable.html index 3715d2bc..d1d4b42a 100644 --- a/docs/assertk/assertk.assertions/is-executable.html +++ b/docs/assertk/assertk.assertions/is-executable.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -68,7 +68,7 @@

isExecutable

Assert that the path is an executable.

diff --git a/docs/assertk/assertk.assertions/is-failure.html b/docs/assertk/assertk.assertions/is-failure.html index 1dbe674d..1f6ecf14 100644 --- a/docs/assertk/assertk.assertions/is-failure.html +++ b/docs/assertk/assertk.assertions/is-failure.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

isFailure

Asserts the given Result threw an exception, returning that exception if it was or failing it if didn't.

assertThat(runCatching { throw Exception("error") }).isFailure().hasMessage("error")
diff --git a/docs/assertk/assertk.assertions/is-false.html b/docs/assertk/assertk.assertions/is-false.html index 1b77a9e8..f9619f5f 100644 --- a/docs/assertk/assertk.assertions/is-false.html +++ b/docs/assertk/assertk.assertions/is-false.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

isFalse

Asserts the boolean is false.

See also

diff --git a/docs/assertk/assertk.assertions/is-file.html b/docs/assertk/assertk.assertions/is-file.html index da034613..02d4b1e6 100644 --- a/docs/assertk/assertk.assertions/is-file.html +++ b/docs/assertk/assertk.assertions/is-file.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -68,7 +68,7 @@

isFile

Asserts the file is a simple file (not a directory).

See also

diff --git a/docs/assertk/assertk.assertions/is-greater-than-or-equal-to.html b/docs/assertk/assertk.assertions/is-greater-than-or-equal-to.html index 2cf89e5a..51697649 100644 --- a/docs/assertk/assertk.assertions/is-greater-than-or-equal-to.html +++ b/docs/assertk/assertk.assertions/is-greater-than-or-equal-to.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

isGreaterThan

Asserts the value is greater or equal to the expected value, using >=.

See also

diff --git a/docs/assertk/assertk.assertions/is-greater-than.html b/docs/assertk/assertk.assertions/is-greater-than.html index 7604c6d4..141144ab 100644 --- a/docs/assertk/assertk.assertions/is-greater-than.html +++ b/docs/assertk/assertk.assertions/is-greater-than.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

isGreaterThan<
fun <A, B : Comparable<A>> Assert<B>.isGreaterThan(other: A)

Asserts the value is greater than the expected value, using >.

See also

diff --git a/docs/assertk/assertk.assertions/is-hidden.html b/docs/assertk/assertk.assertions/is-hidden.html index 0e4a223b..180321e7 100644 --- a/docs/assertk/assertk.assertions/is-hidden.html +++ b/docs/assertk/assertk.assertions/is-hidden.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -68,7 +68,7 @@

isHidden

Asserts the file is hidden.

See also


Assert that the path is hidden.

diff --git a/docs/assertk/assertk.assertions/is-in.html b/docs/assertk/assertk.assertions/is-in.html index 0de16df5..eb628a94 100644 --- a/docs/assertk/assertk.assertions/is-in.html +++ b/docs/assertk/assertk.assertions/is-in.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

isIn

fun <T> Assert<T>.isIn(vararg values: T)

Asserts the value is in the expected values, using in.

See also

diff --git a/docs/assertk/assertk.assertions/is-instance-of.html b/docs/assertk/assertk.assertions/is-instance-of.html index 41de2d0e..f3080844 100644 --- a/docs/assertk/assertk.assertions/is-instance-of.html +++ b/docs/assertk/assertk.assertions/is-instance-of.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -69,7 +69,7 @@

isInstanceOf
inline fun <T : Any> Assert<Any>.isInstanceOf(): Assert<T>

Asserts the value is an instance of the expected kotlin class. Both assertThat("test").isInstanceOf<String>() and assertThat("test").isInstanceOf<Any>() are successful.

See also


fun <T : Any> Assert<Any>.isInstanceOf(kclass: KClass<T>): Assert<T>

Asserts the value is an instance of the expected kotlin class. Both assertThat("test").isInstanceOf(String::class) and assertThat("test").isInstanceOf(Any::class) are successful.

See also

fun <T : Any, S : T> Assert<T>.isInstanceOf(jclass: Class<S>): Assert<S>

Asserts the value is an instance of the expected java class. Both assertThat("test").isInstanceOf(String::class.java) and assertThat("test").isInstanceOf(Any::class.java) is successful.

See also

diff --git a/docs/assertk/assertk.assertions/is-less-than-or-equal-to.html b/docs/assertk/assertk.assertions/is-less-than-or-equal-to.html index a2dbbf23..9143e43e 100644 --- a/docs/assertk/assertk.assertions/is-less-than-or-equal-to.html +++ b/docs/assertk/assertk.assertions/is-less-than-or-equal-to.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

isLessThan

Asserts the value is less than or equal to the expected value, using <=.

See also

diff --git a/docs/assertk/assertk.assertions/is-less-than.html b/docs/assertk/assertk.assertions/is-less-than.html index c64885df..fb8a0317 100644 --- a/docs/assertk/assertk.assertions/is-less-than.html +++ b/docs/assertk/assertk.assertions/is-less-than.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

isLessThan
fun <A, B : Comparable<A>> Assert<B>.isLessThan(other: A)

Asserts the value is less than the expected value, using <.

See also

diff --git a/docs/assertk/assertk.assertions/is-negative.html b/docs/assertk/assertk.assertions/is-negative.html index b1ea421c..dc9f42e9 100644 --- a/docs/assertk/assertk.assertions/is-negative.html +++ b/docs/assertk/assertk.assertions/is-negative.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

isNegative

Asserts the number is less than 0.

See also

diff --git a/docs/assertk/assertk.assertions/is-not-empty.html b/docs/assertk/assertk.assertions/is-not-empty.html index 10876db2..85e6d562 100644 --- a/docs/assertk/assertk.assertions/is-not-empty.html +++ b/docs/assertk/assertk.assertions/is-not-empty.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

isNotEmpty

Asserts the array is not empty.

See also


Asserts the char sequence is not empty.

See also


fun Assert<Map<*, *>>.isNotEmpty()

Asserts the collection is not empty.

See also


Asserts the iterable is not empty.

See also


Asserts the sequence is not empty.

See also

diff --git a/docs/assertk/assertk.assertions/is-not-equal-to.html b/docs/assertk/assertk.assertions/is-not-equal-to.html index 327150ce..2ec85876 100644 --- a/docs/assertk/assertk.assertions/is-not-equal-to.html +++ b/docs/assertk/assertk.assertions/is-not-equal-to.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

isNotEqual
fun Assert<Any?>.isNotEqualTo(expected: Any?)

Asserts the value is not equal to the expected one, using !=.

See also


fun <T> Assert<Array<T>>.isNotEqualTo(expected: Array<T>)

Asserts the array contents are not equal to the expected one, using contentDeepEquals.

See also


fun Assert<String?>.isNotEqualTo(other: String?, ignoreCase: Boolean = false)

Asserts the string is not equal to the expected string.

Parameters

ignoreCase

true to compare ignoring case, the default if false.

See also

diff --git a/docs/assertk/assertk.assertions/is-not-hidden.html b/docs/assertk/assertk.assertions/is-not-hidden.html index e279aa9c..45ff6e93 100644 --- a/docs/assertk/assertk.assertions/is-not-hidden.html +++ b/docs/assertk/assertk.assertions/is-not-hidden.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -68,7 +68,7 @@

isNotHidden

Asserts the file is not hidden.

See also

diff --git a/docs/assertk/assertk.assertions/is-not-in.html b/docs/assertk/assertk.assertions/is-not-in.html index 279dc8b7..449d8158 100644 --- a/docs/assertk/assertk.assertions/is-not-in.html +++ b/docs/assertk/assertk.assertions/is-not-in.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

isNotIn
fun <T> Assert<T>.isNotIn(vararg values: T)

Asserts the value is not in the expected values, using !in.

See also

diff --git a/docs/assertk/assertk.assertions/is-not-instance-of.html b/docs/assertk/assertk.assertions/is-not-instance-of.html index 28062a6d..6674e6a6 100644 --- a/docs/assertk/assertk.assertions/is-not-instance-of.html +++ b/docs/assertk/assertk.assertions/is-not-instance-of.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -69,7 +69,7 @@

isNotInstance
inline fun <T : Any> Assert<Any>.isNotInstanceOf()

Asserts the value is not an instance of the expected kotlin class. Both assertThat("test").isNotInstanceOf<String>() and assertThat("test").isNotInstanceOf<String>() fail.

See also


fun <T : Any> Assert<T>.isNotInstanceOf(kclass: KClass<out T>)

Asserts the value is not an instance of the expected kotlin class. Both assertThat("test").isNotInstanceOf(String::class) and assertThat("test").isNotInstanceOf(Any::class) fail.

See also

fun <T : Any> Assert<T>.isNotInstanceOf(jclass: Class<out T>)

Asserts the value is not an instance of the expected java class. Both assertThat("test").isNotInstanceOf(String::class) and assertThat("test").isNotInstanceOf(Any::class) fails.

See also

diff --git a/docs/assertk/assertk.assertions/is-not-null.html b/docs/assertk/assertk.assertions/is-not-null.html index 4a975632..16723b23 100644 --- a/docs/assertk/assertk.assertions/is-not-null.html +++ b/docs/assertk/assertk.assertions/is-not-null.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

isNotNull
fun <T : Any> Assert<T?>.isNotNull(): Assert<T>

Asserts the value is not null. You can pass in an optional lambda to run additional assertions on the non-null value.

val name: String? = ...
assertThat(name).isNotNull().hasLength(4)

diff --git a/docs/assertk/assertk.assertions/is-not-same-as.html b/docs/assertk/assertk.assertions/is-not-same-as.html index 78161cff..9761929b 100644 --- a/docs/assertk/assertk.assertions/is-not-same-as.html +++ b/docs/assertk/assertk.assertions/is-not-same-as.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

isNotSame
fun Assert<Any?>.isNotSameAs(expected: Any?)

Deprecated

renamed to isNotSameInstanceAs

Replace with

isNotSameInstanceAs(expected)

Asserts the value is not the same as the expected one, using !==.

See also

diff --git a/docs/assertk/assertk.assertions/is-not-same-instance-as.html b/docs/assertk/assertk.assertions/is-not-same-instance-as.html index 1657f9e3..b8f884b0 100644 --- a/docs/assertk/assertk.assertions/is-not-same-instance-as.html +++ b/docs/assertk/assertk.assertions/is-not-same-instance-as.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

isNotSame
fun Assert<Any?>.isNotSameInstanceAs(expected: Any?)

Asserts the value is not the same as the expected one, using !==.

See also

diff --git a/docs/assertk/assertk.assertions/is-not-zero.html b/docs/assertk/assertk.assertions/is-not-zero.html index 01f55b91..b9262492 100644 --- a/docs/assertk/assertk.assertions/is-not-zero.html +++ b/docs/assertk/assertk.assertions/is-not-zero.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

isNotZero

Asserts the number is not 0.

See also

diff --git a/docs/assertk/assertk.assertions/is-null-or-empty.html b/docs/assertk/assertk.assertions/is-null-or-empty.html index 9b2db8bc..f4e4cb9c 100644 --- a/docs/assertk/assertk.assertions/is-null-or-empty.html +++ b/docs/assertk/assertk.assertions/is-null-or-empty.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

isNullOr

Asserts the array is null or empty.

See also


Asserts the char sequence is null or empty.

See also


fun Assert<Map<*, *>?>.isNullOrEmpty()

Asserts the collection is null or empty.

See also

diff --git a/docs/assertk/assertk.assertions/is-null.html b/docs/assertk/assertk.assertions/is-null.html index 36da6f6a..e092166d 100644 --- a/docs/assertk/assertk.assertions/is-null.html +++ b/docs/assertk/assertk.assertions/is-null.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

isNull

fun Assert<Any?>.isNull()

Asserts the value is null.

diff --git a/docs/assertk/assertk.assertions/is-positive.html b/docs/assertk/assertk.assertions/is-positive.html index 3b0ef041..ac0b762c 100644 --- a/docs/assertk/assertk.assertions/is-positive.html +++ b/docs/assertk/assertk.assertions/is-positive.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

isPositive

Asserts the number is greater than 0.

See also

diff --git a/docs/assertk/assertk.assertions/is-present.html b/docs/assertk/assertk.assertions/is-present.html index d36bc78d..c70fc325 100644 --- a/docs/assertk/assertk.assertions/is-present.html +++ b/docs/assertk/assertk.assertions/is-present.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -68,7 +68,7 @@

isPresent

Asserts that optional's value is present

See also

diff --git a/docs/assertk/assertk.assertions/is-readable.html b/docs/assertk/assertk.assertions/is-readable.html index 0d8b7ae2..98413dcc 100644 --- a/docs/assertk/assertk.assertions/is-readable.html +++ b/docs/assertk/assertk.assertions/is-readable.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -68,7 +68,7 @@

isReadable

Assert that the path is readable.

diff --git a/docs/assertk/assertk.assertions/is-regular-file.html b/docs/assertk/assertk.assertions/is-regular-file.html index 7edeb5c5..d9526a93 100644 --- a/docs/assertk/assertk.assertions/is-regular-file.html +++ b/docs/assertk/assertk.assertions/is-regular-file.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -68,7 +68,7 @@

isRegularFile<
fun Assert<Path>.isRegularFile(vararg options: LinkOption)

Assert that the path is a regular file.

Parameters

options

indicating how symbolic links are handled

diff --git a/docs/assertk/assertk.assertions/is-same-as.html b/docs/assertk/assertk.assertions/is-same-as.html index a1d96d34..68d92ee0 100644 --- a/docs/assertk/assertk.assertions/is-same-as.html +++ b/docs/assertk/assertk.assertions/is-same-as.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

isSameAs
fun <T> Assert<T>.isSameAs(expected: T)

Deprecated

renamed to isSameInstanceAs

Replace with

isSameInstanceAs(expected)

Asserts the value is the same as the expected one, using ===.

See also

diff --git a/docs/assertk/assertk.assertions/is-same-file-as.html b/docs/assertk/assertk.assertions/is-same-file-as.html index 5eec99bf..bd2ef2a0 100644 --- a/docs/assertk/assertk.assertions/is-same-file-as.html +++ b/docs/assertk/assertk.assertions/is-same-file-as.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -68,7 +68,7 @@

isSameFile
fun Assert<Path>.isSameFileAs(expected: Path)

Assert that the path points to the same object as the other path.

Parameters

expected

the path which the actual is compared to.

diff --git a/docs/assertk/assertk.assertions/is-same-instance-as.html b/docs/assertk/assertk.assertions/is-same-instance-as.html index cac6358e..31a47d63 100644 --- a/docs/assertk/assertk.assertions/is-same-instance-as.html +++ b/docs/assertk/assertk.assertions/is-same-instance-as.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

isSameInstance
fun <T> Assert<T>.isSameInstanceAs(expected: T)

Asserts the value is the same as the expected one, using ===.

See also

diff --git a/docs/assertk/assertk.assertions/is-strictly-between.html b/docs/assertk/assertk.assertions/is-strictly-between.html index 114c9adf..cd5ca729 100644 --- a/docs/assertk/assertk.assertions/is-strictly-between.html +++ b/docs/assertk/assertk.assertions/is-strictly-between.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

isStrictlyBetw
fun <A, B : Comparable<A>> Assert<B>.isStrictlyBetween(start: A, end: A)

Asserts the value is between the expected start and end values, non-inclusive.

See also

diff --git a/docs/assertk/assertk.assertions/is-success.html b/docs/assertk/assertk.assertions/is-success.html index a646f90b..9fcbf27c 100644 --- a/docs/assertk/assertk.assertions/is-success.html +++ b/docs/assertk/assertk.assertions/is-success.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

isSuccess

Asserts the given Result successful returned a value, returning its result if it did or failing if it didn't.

assertThat(runCatching { 1 + 1 }).isSuccess().isEqualTo(2)
diff --git a/docs/assertk/assertk.assertions/is-symbolic-link.html b/docs/assertk/assertk.assertions/is-symbolic-link.html index 8b69a6c0..a10b8fd3 100644 --- a/docs/assertk/assertk.assertions/is-symbolic-link.html +++ b/docs/assertk/assertk.assertions/is-symbolic-link.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -68,7 +68,7 @@

isSymbolicLink

Assert that the path is a symbolic link.

diff --git a/docs/assertk/assertk.assertions/is-true.html b/docs/assertk/assertk.assertions/is-true.html index 31c15233..c7186561 100644 --- a/docs/assertk/assertk.assertions/is-true.html +++ b/docs/assertk/assertk.assertions/is-true.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

isTrue

Asserts the boolean is true.

See also

diff --git a/docs/assertk/assertk.assertions/is-writable.html b/docs/assertk/assertk.assertions/is-writable.html index 9bc12998..a93a0cd2 100644 --- a/docs/assertk/assertk.assertions/is-writable.html +++ b/docs/assertk/assertk.assertions/is-writable.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -68,7 +68,7 @@

isWritable

Assert that the path is writable link.

diff --git a/docs/assertk/assertk.assertions/is-zero.html b/docs/assertk/assertk.assertions/is-zero.html index be324f76..4558cb97 100644 --- a/docs/assertk/assertk.assertions/is-zero.html +++ b/docs/assertk/assertk.assertions/is-zero.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

isZero

Asserts the number is 0.

See also

diff --git a/docs/assertk/assertk.assertions/j-class.html b/docs/assertk/assertk.assertions/j-class.html index bd9de334..c38f70bc 100644 --- a/docs/assertk/assertk.assertions/j-class.html +++ b/docs/assertk/assertk.assertions/j-class.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -68,7 +68,7 @@

jClass

fun <T : Any> Assert<T>.jClass(): Assert<Class<out T>>

Returns an assert on the java class of the value.

diff --git a/docs/assertk/assertk.assertions/k-class.html b/docs/assertk/assertk.assertions/k-class.html index f9668339..10e5139a 100644 --- a/docs/assertk/assertk.assertions/k-class.html +++ b/docs/assertk/assertk.assertions/k-class.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

kClass

Returns an assert on the kotlin class of the value.

diff --git a/docs/assertk/assertk.assertions/key.html b/docs/assertk/assertk.assertions/key.html index b952f3b6..7f9803e8 100644 --- a/docs/assertk/assertk.assertions/key.html +++ b/docs/assertk/assertk.assertions/key.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

key

fun <K, V> Assert<Map<K, V>>.key(key: K): Assert<V>

Returns an assert that asserts on the value at the given key in the map.

assertThat(mapOf("key" to "value")).key("key").isEqualTo("value")
diff --git a/docs/assertk/assertk.assertions/length.html b/docs/assertk/assertk.assertions/length.html index 2eacfbf4..5180dae1 100644 --- a/docs/assertk/assertk.assertions/length.html +++ b/docs/assertk/assertk.assertions/length.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

length

Returns an assert on the CharSequence's length.

diff --git a/docs/assertk/assertk.assertions/lines.html b/docs/assertk/assertk.assertions/lines.html index f3810d09..0a12581a 100644 --- a/docs/assertk/assertk.assertions/lines.html +++ b/docs/assertk/assertk.assertions/lines.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -68,7 +68,7 @@

lines

fun Assert<Path>.lines(charset: Charset = Charsets.UTF_8): Assert<List<String>>

Assert on file lines

Parameters

charset

charset to use when reading file

diff --git a/docs/assertk/assertk.assertions/matches-predicate.html b/docs/assertk/assertk.assertions/matches-predicate.html index 628d3029..1a204657 100644 --- a/docs/assertk/assertk.assertions/matches-predicate.html +++ b/docs/assertk/assertk.assertions/matches-predicate.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -63,10 +63,10 @@

matchesPredicate

-

Asserts if the values satisfies the predicate provided.

val divisibleBy5 : (Int) -> Boolean = { it % 5 == 0 }
assertThat(10).matchesPredicate(divisibleBy5)
+

Asserts if the values satisfies the predicate provided.

val divisibleBy5 : (Int) -> Boolean = { it % 5 == 0 }
assert(10).matchesPredicate(divisibleBy5)
diff --git a/docs/assertk/assertk.assertions/matches.html b/docs/assertk/assertk.assertions/matches.html index 706a5b5f..c9722b91 100644 --- a/docs/assertk/assertk.assertions/matches.html +++ b/docs/assertk/assertk.assertions/matches.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

matches

Asserts the char sequence matches the expected regular expression.

diff --git a/docs/assertk/assertk.assertions/message-contains.html b/docs/assertk/assertk.assertions/message-contains.html index 06639d51..53ba0cfd 100644 --- a/docs/assertk/assertk.assertions/message-contains.html +++ b/docs/assertk/assertk.assertions/message-contains.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

messageContains

Asserts the throwable contains the expected text

diff --git a/docs/assertk/assertk.assertions/message.html b/docs/assertk/assertk.assertions/message.html index e02c939f..1f970be7 100644 --- a/docs/assertk/assertk.assertions/message.html +++ b/docs/assertk/assertk.assertions/message.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

message

Returns an assert on the throwable's message.

diff --git a/docs/assertk/assertk.assertions/name.html b/docs/assertk/assertk.assertions/name.html index 0e11e800..712ba687 100644 --- a/docs/assertk/assertk.assertions/name.html +++ b/docs/assertk/assertk.assertions/name.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -68,7 +68,7 @@

name

Returns an assert on the file's name.

diff --git a/docs/assertk/assertk.assertions/none.html b/docs/assertk/assertk.assertions/none.html index 40169834..d2dedf12 100644 --- a/docs/assertk/assertk.assertions/none.html +++ b/docs/assertk/assertk.assertions/none.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

none

fun <E> Assert<Iterable<E>>.none(f: (Assert<E>) -> Unit)

Asserts on each item in the iterable, passing if none of the items pass. The given lambda will be run for each item.

assertThat(listOf("one", "two")).none {
it.hasLength(2)
}

fun <E> Assert<Sequence<E>>.none(f: (Assert<E>) -> Unit)

Asserts on each item in the sequence, passing if none of the items pass. The given lambda will be run for each item.

assertThat(sequenceOf("one", "two")).none {
it.hasLength(2)
}
diff --git a/docs/assertk/assertk.assertions/parent.html b/docs/assertk/assertk.assertions/parent.html index 2931df9f..8f1726c1 100644 --- a/docs/assertk/assertk.assertions/parent.html +++ b/docs/assertk/assertk.assertions/parent.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -68,7 +68,7 @@

parent

Returns an assert on the file's parent.

diff --git a/docs/assertk/assertk.assertions/path.html b/docs/assertk/assertk.assertions/path.html index 5c4abe33..86e0d1ac 100644 --- a/docs/assertk/assertk.assertions/path.html +++ b/docs/assertk/assertk.assertions/path.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -68,7 +68,7 @@

path

Returns an assert on the file's path.

diff --git a/docs/assertk/assertk.assertions/prop.html b/docs/assertk/assertk.assertions/prop.html index 56d473d4..b444b1e5 100644 --- a/docs/assertk/assertk.assertions/prop.html +++ b/docs/assertk/assertk.assertions/prop.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

prop

fun <T, P> Assert<T>.prop(name: String, extract: (T) -> P): Assert<P>

Returns an assert that asserts on the given property of the value.

Parameters

name

The name of the property to show in failure messages.

extract

The function to extract the property value out of the value of the current assert.

assertThat(person).prop("name", { it.name }).isEqualTo("Sue")

fun <T, P> Assert<T>.prop(property: KProperty1<T, P>): Assert<P>

Returns an assert that asserts on the given property.

Example:

assertThat(person).prop(Person::name).isEqualTo("Sue")

Parameters

property

Property on which to assert. The name of this property will be shown in failure messages.


fun <T, R, F : (T) -> R, KCallable<R>> Assert<T>.prop(callable: F): Assert<R>

Returns an assert that asserts on the result of calling the given function.

Example:

assertThat(person).prop(Person::nameAsLowerCase).isEqualTo("sue")

Parameters

callable

Callable on which to assert. The name of this callable will be shown in the failure messages.

diff --git a/docs/assertk/assertk.assertions/root-cause.html b/docs/assertk/assertk.assertions/root-cause.html index 2944d53e..5e462919 100644 --- a/docs/assertk/assertk.assertions/root-cause.html +++ b/docs/assertk/assertk.assertions/root-cause.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

rootCause

Returns an assert on the throwable's root cause.

diff --git a/docs/assertk/assertk.assertions/single.html b/docs/assertk/assertk.assertions/single.html index 4bfb5df0..51c88d21 100644 --- a/docs/assertk/assertk.assertions/single.html +++ b/docs/assertk/assertk.assertions/single.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

single

fun <E, T : Iterable<E>> Assert<T>.single(): Assert<E>

Asserts the iterable contains exactly one element, and returns an assert on that element.

diff --git a/docs/assertk/assertk.assertions/size.html b/docs/assertk/assertk.assertions/size.html index 45e74833..d927c5e5 100644 --- a/docs/assertk/assertk.assertions/size.html +++ b/docs/assertk/assertk.assertions/size.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

size

fun Assert<Array<*>>.size(): Assert<Int>

Returns an assert on the Arrays's size.


Returns an assert on the Collection's size.


fun Assert<Map<*, *>>.size(): Assert<Int>

Returns an assert on the Maps's size.

diff --git a/docs/assertk/assertk.assertions/stack-trace.html b/docs/assertk/assertk.assertions/stack-trace.html index 21f4132d..f04f7bdf 100644 --- a/docs/assertk/assertk.assertions/stack-trace.html +++ b/docs/assertk/assertk.assertions/stack-trace.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -68,7 +68,7 @@

stackTrace

Returns an assert on the throwable's stack trace.

diff --git a/docs/assertk/assertk.assertions/starts-with.html b/docs/assertk/assertk.assertions/starts-with.html index 9cf9dd1d..e3a18863 100644 --- a/docs/assertk/assertk.assertions/starts-with.html +++ b/docs/assertk/assertk.assertions/starts-with.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

startsWith

fun Assert<CharSequence>.startsWith(other: CharSequence, ignoreCase: Boolean = false)

Asserts the char sequence starts with the expected char sequence.

Parameters

ignoreCase

true to compare ignoring case, the default if false.

See also


fun Assert<List<*>>.startsWith(vararg elements: Any?)

Asserts the list starts with the expected elements, in the same order.

1, 2, 3 startsWith 1, 2 pass 1, 2, 3 startsWith 2, 1 fails 1, 2, 3 startsWith 1, 2, 3 pass [] startsWith 1, 2 fails 1, 2 startsWith [] pass [] startsWith [] pass

See also

diff --git a/docs/assertk/assertk.assertions/text.html b/docs/assertk/assertk.assertions/text.html index dca21bfe..d88eac5f 100644 --- a/docs/assertk/assertk.assertions/text.html +++ b/docs/assertk/assertk.assertions/text.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -68,7 +68,7 @@

text

fun Assert<File>.text(charset: Charset = Charsets.UTF_8): Assert<String>

Returns an assert on the file's contents as text.

diff --git a/docs/assertk/assertk.assertions/to-string-fun.html b/docs/assertk/assertk.assertions/to-string-fun.html index 95c030f0..43e6bd0e 100644 --- a/docs/assertk/assertk.assertions/to-string-fun.html +++ b/docs/assertk/assertk.assertions/to-string-fun.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

toStringFun

Returns an assert on the toString method of the value.

diff --git a/docs/assertk/assertk/-assert/assert-that.html b/docs/assertk/assertk/-assert/assert-that.html index ef9c94b6..bcf38654 100644 --- a/docs/assertk/assertk/-assert/assert-that.html +++ b/docs/assertk/assertk/-assert/assert-that.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

assertThat

abstract fun <R> assertThat(actual: R, name: String? = this.name): Assert<R>

Asserts on the given value with an optional name.

assertThat(true, name = "true").isTrue()
diff --git a/docs/assertk/assertk/-assert/given.html b/docs/assertk/assertk/-assert/given.html index b4b6a0be..56f1a9be 100644 --- a/docs/assertk/assertk/-assert/given.html +++ b/docs/assertk/assertk/-assert/given.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

given

inline fun given(assertion: (T) -> Unit)

Allows checking the actual value of an assert. This can be used to build your own custom assertions.

fun Assert<Int>.isTen() = given { actual ->
if (actual == 10) return
expected("to be 10 but was:${show(actual)}")
}
diff --git a/docs/assertk/assertk/-assert/index.html b/docs/assertk/assertk/-assert/index.html index 87234683..adf3ee47 100644 --- a/docs/assertk/assertk/-assert/index.html +++ b/docs/assertk/assertk/-assert/index.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -2016,7 +2016,7 @@

Functions

diff --git a/docs/assertk/assertk/-assert/name.html b/docs/assertk/assertk/-assert/name.html index 7f7a1e97..e239d245 100644 --- a/docs/assertk/assertk/-assert/name.html +++ b/docs/assertk/assertk/-assert/name.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

name

val name: String?
diff --git a/docs/assertk/assertk/-assert/transform.html b/docs/assertk/assertk/-assert/transform.html index c2671993..cbb5560b 100644 --- a/docs/assertk/assertk/-assert/transform.html +++ b/docs/assertk/assertk/-assert/transform.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

transform

inline fun <R> transform(name: String? = this.name, transform: (T) -> R): Assert<R>

Transforms an assertion from one type to another. If the assertion is failing the resulting assertion will still be failing, otherwise the mapping function is called. An optional name can be provided, otherwise this assertion's name will be used.

diff --git a/docs/assertk/assertk/-assertk-dsl/index.html b/docs/assertk/assertk/-assertk-dsl/index.html index 2ab63e67..537b62d1 100644 --- a/docs/assertk/assertk/-assertk-dsl/index.html +++ b/docs/assertk/assertk/-assertk-dsl/index.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -70,7 +70,7 @@

AssertkDsl

diff --git a/docs/assertk/assertk/-table-builder/index.html b/docs/assertk/assertk/-table-builder/index.html index ac036a7c..8cb36601 100644 --- a/docs/assertk/assertk/-table-builder/index.html +++ b/docs/assertk/assertk/-table-builder/index.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -70,7 +70,7 @@

TableBuilder

diff --git a/docs/assertk/assertk/-table/index.html b/docs/assertk/assertk/-table/index.html index 57487f47..f9497457 100644 --- a/docs/assertk/assertk/-table/index.html +++ b/docs/assertk/assertk/-table/index.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -70,7 +70,7 @@

Table

diff --git a/docs/assertk/assertk/-table1-builder/index.html b/docs/assertk/assertk/-table1-builder/index.html index 47507f94..e05cfe5c 100644 --- a/docs/assertk/assertk/-table1-builder/index.html +++ b/docs/assertk/assertk/-table1-builder/index.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -90,7 +90,7 @@

Functions

diff --git a/docs/assertk/assertk/-table1-builder/row.html b/docs/assertk/assertk/-table1-builder/row.html index e01195da..a7f321d9 100644 --- a/docs/assertk/assertk/-table1-builder/row.html +++ b/docs/assertk/assertk/-table1-builder/row.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

row

fun <C1> row(val1: C1): Table1<C1>

Adds a row to the table with the given values.

diff --git a/docs/assertk/assertk/-table1/for-all.html b/docs/assertk/assertk/-table1/for-all.html index 17a52ca8..20a702a3 100644 --- a/docs/assertk/assertk/-table1/for-all.html +++ b/docs/assertk/assertk/-table1/for-all.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

forAll

fun forAll(f: (C1) -> Unit)

Runs the given lambda for each row in the table.

diff --git a/docs/assertk/assertk/-table1/index.html b/docs/assertk/assertk/-table1/index.html index c70bbd4a..6d3ac2b9 100644 --- a/docs/assertk/assertk/-table1/index.html +++ b/docs/assertk/assertk/-table1/index.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -105,7 +105,7 @@

Functions

diff --git a/docs/assertk/assertk/-table1/row.html b/docs/assertk/assertk/-table1/row.html index b29bd4c4..f37b8386 100644 --- a/docs/assertk/assertk/-table1/row.html +++ b/docs/assertk/assertk/-table1/row.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

row

fun row(val1: C1): Table1<C1>

Adds a row to the table with the given values.

diff --git a/docs/assertk/assertk/-table2-builder/index.html b/docs/assertk/assertk/-table2-builder/index.html index 173f3503..189cf4c3 100644 --- a/docs/assertk/assertk/-table2-builder/index.html +++ b/docs/assertk/assertk/-table2-builder/index.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -90,7 +90,7 @@

Functions

diff --git a/docs/assertk/assertk/-table2-builder/row.html b/docs/assertk/assertk/-table2-builder/row.html index c4bdaa32..3e2e2e64 100644 --- a/docs/assertk/assertk/-table2-builder/row.html +++ b/docs/assertk/assertk/-table2-builder/row.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

row

fun <C1, C2> row(val1: C1, val2: C2): Table2<C1, C2>

Adds a row to the table with the given values.

diff --git a/docs/assertk/assertk/-table2/for-all.html b/docs/assertk/assertk/-table2/for-all.html index feb90696..0152e385 100644 --- a/docs/assertk/assertk/-table2/for-all.html +++ b/docs/assertk/assertk/-table2/for-all.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

forAll

fun forAll(f: (C1, C2) -> Unit)

Runs the given lambda for each row in the table.

diff --git a/docs/assertk/assertk/-table2/index.html b/docs/assertk/assertk/-table2/index.html index aa713c64..b3e782f1 100644 --- a/docs/assertk/assertk/-table2/index.html +++ b/docs/assertk/assertk/-table2/index.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -105,7 +105,7 @@

Functions

diff --git a/docs/assertk/assertk/-table2/row.html b/docs/assertk/assertk/-table2/row.html index 7d54f96f..8165f94b 100644 --- a/docs/assertk/assertk/-table2/row.html +++ b/docs/assertk/assertk/-table2/row.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

row

fun row(val1: C1, val2: C2): Table2<C1, C2>

Adds a row to the table with the given values.

diff --git a/docs/assertk/assertk/-table3-builder/index.html b/docs/assertk/assertk/-table3-builder/index.html index acd35611..d8b1d042 100644 --- a/docs/assertk/assertk/-table3-builder/index.html +++ b/docs/assertk/assertk/-table3-builder/index.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -90,7 +90,7 @@

Functions

diff --git a/docs/assertk/assertk/-table3-builder/row.html b/docs/assertk/assertk/-table3-builder/row.html index 428a7078..2f36cd6c 100644 --- a/docs/assertk/assertk/-table3-builder/row.html +++ b/docs/assertk/assertk/-table3-builder/row.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

row

fun <C1, C2, C3> row(val1: C1, val2: C2, val3: C3): Table3<C1, C2, C3>

Adds a row to the table with the given values.

diff --git a/docs/assertk/assertk/-table3/for-all.html b/docs/assertk/assertk/-table3/for-all.html index c39ef527..26ba2312 100644 --- a/docs/assertk/assertk/-table3/for-all.html +++ b/docs/assertk/assertk/-table3/for-all.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

forAll

fun forAll(f: (C1, C2, C3) -> Unit)

Runs the given lambda for each row in the table.

diff --git a/docs/assertk/assertk/-table3/index.html b/docs/assertk/assertk/-table3/index.html index 493f19b1..e098d872 100644 --- a/docs/assertk/assertk/-table3/index.html +++ b/docs/assertk/assertk/-table3/index.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -105,7 +105,7 @@

Functions

diff --git a/docs/assertk/assertk/-table3/row.html b/docs/assertk/assertk/-table3/row.html index 838d9809..ec61eed8 100644 --- a/docs/assertk/assertk/-table3/row.html +++ b/docs/assertk/assertk/-table3/row.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

row

fun row(val1: C1, val2: C2, val3: C3): Table3<C1, C2, C3>

Adds a row to the table with the given values.

diff --git a/docs/assertk/assertk/-table4-builder/index.html b/docs/assertk/assertk/-table4-builder/index.html index 3a6bfb05..abd10811 100644 --- a/docs/assertk/assertk/-table4-builder/index.html +++ b/docs/assertk/assertk/-table4-builder/index.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -90,7 +90,7 @@

Functions

diff --git a/docs/assertk/assertk/-table4-builder/row.html b/docs/assertk/assertk/-table4-builder/row.html index 7a415a4e..1ca66a4f 100644 --- a/docs/assertk/assertk/-table4-builder/row.html +++ b/docs/assertk/assertk/-table4-builder/row.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

row

fun <C1, C2, C3, C4> row(val1: C1, val2: C2, val3: C3, val4: C4): Table4<C1, C2, C3, C4>

Adds a row to the table with the given values.

diff --git a/docs/assertk/assertk/-table4/for-all.html b/docs/assertk/assertk/-table4/for-all.html index 79fb4a84..c9c12a1d 100644 --- a/docs/assertk/assertk/-table4/for-all.html +++ b/docs/assertk/assertk/-table4/for-all.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

forAll

fun forAll(f: (C1, C2, C3, C4) -> Unit)

Runs the given lambda for each row in the table.

diff --git a/docs/assertk/assertk/-table4/index.html b/docs/assertk/assertk/-table4/index.html index 391cb93f..f89d9769 100644 --- a/docs/assertk/assertk/-table4/index.html +++ b/docs/assertk/assertk/-table4/index.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -105,7 +105,7 @@

Functions

diff --git a/docs/assertk/assertk/-table4/row.html b/docs/assertk/assertk/-table4/row.html index 222c353c..a9576afd 100644 --- a/docs/assertk/assertk/-table4/row.html +++ b/docs/assertk/assertk/-table4/row.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

row

fun row(val1: C1, val2: C2, val3: C3, val4: C4): Table4<C1, C2, C3, C4>

Adds a row to the table with the given values.

diff --git a/docs/assertk/assertk/-thread-local-ref/-thread-local-ref.html b/docs/assertk/assertk/-thread-local-ref/-thread-local-ref.html index 51c5e298..7d873ca1 100644 --- a/docs/assertk/assertk/-thread-local-ref/-thread-local-ref.html +++ b/docs/assertk/assertk/-thread-local-ref/-thread-local-ref.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -49,6 +49,7 @@ +
-
+

ThreadLocalRef

-
-
expect constructor(initial: () -> T)
actual constructor(initial: () -> T)
actual constructor(initial: () -> T)
actual constructor(initial: () -> T)
+
+
expect constructor(initial: () -> T)
actual constructor(initial: () -> T)
actual constructor(initial: () -> T)
actual constructor(initial: () -> T)
actual constructor(initial: () -> T)
diff --git a/docs/assertk/assertk/-thread-local-ref/get.html b/docs/assertk/assertk/-thread-local-ref/get.html index 0b6114f0..8755634b 100644 --- a/docs/assertk/assertk/-thread-local-ref/get.html +++ b/docs/assertk/assertk/-thread-local-ref/get.html @@ -41,13 +41,14 @@ assertk-project -
0.28.1 +
0.28.0
+
-
+

get

-
-
expect fun get(): T
actual fun get(): T
actual fun get(): T
+
+
expect fun get(): T
actual fun get(): T
actual fun get(): T
actual fun get(): T
diff --git a/docs/assertk/assertk/-thread-local-ref/index.html b/docs/assertk/assertk/-thread-local-ref/index.html index 279d7461..3b2c0916 100644 --- a/docs/assertk/assertk/-thread-local-ref/index.html +++ b/docs/assertk/assertk/-thread-local-ref/index.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -49,6 +49,7 @@ +
-
+

ThreadLocalRef

-
-
expect open class ThreadLocalRef<T>(initial: () -> T)
actual open class ThreadLocalRef<T>(initial: () -> T)
actual open class ThreadLocalRef<T>(initial: () -> T) : ThreadLocal<T>
actual open class ThreadLocalRef<T>(initial: () -> T)
+
+
expect open class ThreadLocalRef<T>(initial: () -> T)
actual open class ThreadLocalRef<T>(initial: () -> T)
actual open class ThreadLocalRef<T>(initial: () -> T) : ThreadLocal<T>
actual open class ThreadLocalRef<T>(initial: () -> T)
actual open class ThreadLocalRef<T>(initial: () -> T)

Constructors

-
-
+
+
- +
Link copied to clipboard
-
-
expect constructor(initial: () -> T)
actual constructor(initial: () -> T)
actual constructor(initial: () -> T)
actual constructor(initial: () -> T)
+
+
expect constructor(initial: () -> T)
actual constructor(initial: () -> T)
actual constructor(initial: () -> T)
actual constructor(initial: () -> T)
actual constructor(initial: () -> T)
@@ -114,19 +115,19 @@

Properties

Functions

-
-
+
+
- +
Link copied to clipboard
-
-
expect fun get(): T
actual fun get(): T
open fun get(): T
actual fun get(): T
+
+
expect fun get(): T
actual fun get(): T
open fun get(): T
actual fun get(): T
actual fun get(): T
@@ -148,19 +149,19 @@

Functions

- -
+ +
- +
Link copied to clipboard
-
-
expect fun set(value: T)
actual fun set(value: T)
open fun set(p0: T)
actual fun set(value: T)
+
+
expect fun set(value: T)
actual fun set(value: T)
open fun set(p0: T)
actual fun set(value: T)
actual fun set(value: T)
@@ -171,7 +172,7 @@

Functions

diff --git a/docs/assertk/assertk/-thread-local-ref/set.html b/docs/assertk/assertk/-thread-local-ref/set.html index 43fa82b8..453c9ffe 100644 --- a/docs/assertk/assertk/-thread-local-ref/set.html +++ b/docs/assertk/assertk/-thread-local-ref/set.html @@ -41,13 +41,14 @@ assertk-project
-
0.28.1 +
0.28.0
+
-
+

set

-
-
expect fun set(value: T)
actual fun set(value: T)
actual fun set(value: T)
+
+
expect fun set(value: T)
actual fun set(value: T)
actual fun set(value: T)
actual fun set(value: T)
diff --git a/docs/assertk/assertk/all.html b/docs/assertk/assertk/all.html index 16dd699e..b006bd40 100644 --- a/docs/assertk/assertk/all.html +++ b/docs/assertk/assertk/all.html @@ -41,7 +41,7 @@ assertk-project
-
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

all

fun <T> Assert<T>.all(message: String, body: Assert<T>.() -> Unit)

All assertions in the given lambda are run.

assertThat("test", name = "test").all {
startsWith("t")
endsWith("t")
}

Parameters

message

An optional message to show before all failures.

body

The body to execute.


fun <T> Assert<T>.all(body: Assert<T>.() -> Unit)

All assertions in the given lambda are run.

assertThat("test", name = "test").all {
startsWith("t")
endsWith("t")
}

Parameters

body

The body to execute.

diff --git a/docs/assertk/assertk/assert-all.html b/docs/assertk/assertk/assert-all.html index 19230dc0..494609f4 100644 --- a/docs/assertk/assertk/assert-all.html +++ b/docs/assertk/assertk/assert-all.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

assertAll

inline fun assertAll(f: () -> Unit)

Runs all assertions in the given lambda and reports any failures.

diff --git a/docs/assertk/assertk/assert-failure.html b/docs/assertk/assertk/assert-failure.html index 33eeec56..da798661 100644 --- a/docs/assertk/assertk/assert-failure.html +++ b/docs/assertk/assertk/assert-failure.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

assertFailure

inline fun assertFailure(f: () -> Unit): Assert<Throwable>

Asserts that the given block will throw an exception rather than complete successfully.

diff --git a/docs/assertk/assertk/assert-that.html b/docs/assertk/assertk/assert-that.html index 90393f42..6a219f5b 100644 --- a/docs/assertk/assertk/assert-that.html +++ b/docs/assertk/assertk/assert-that.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

assertThat

fun <T> assertThat(actual: T, name: String? = null, displayActual: (T) -> String = { display(it) }): Assert<T>

Asserts on the given value with an optional name.

assertThat(true, name = "true").isTrue()

fun <T> assertThat(getter: KProperty0<T>, name: String? = null): Assert<T>

Asserts on the given property reference using its name, if no explicit name is specified. This method should be preferred in cases, where property references can be used, as it uses the property's name for the assertion automatically. The name may optionally be overridden, if needed.

data class Person(val name: String)

val p = Person("Hugo")

assertThat(p::name).contains("u")
diff --git a/docs/assertk/assertk/fail.html b/docs/assertk/assertk/fail.html index d5abfe06..f51687ec 100644 --- a/docs/assertk/assertk/fail.html +++ b/docs/assertk/assertk/fail.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

fail

Fail the test with the given {@link AssertionError}.


fun fail(message: String, expected: Any? = NONE, actual: Any? = NONE, cause: Throwable? = null): Nothing

Fail the test with the given message.

diff --git a/docs/assertk/assertk/index.html b/docs/assertk/assertk/index.html index 44d52e8f..3dbe1bf1 100644 --- a/docs/assertk/assertk/index.html +++ b/docs/assertk/assertk/index.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -49,7 +49,7 @@ - +
-
+

Package-level declarations

@@ -252,19 +252,19 @@

Types

- -
+ +
- +
Link copied to clipboard
-
-
expect open class ThreadLocalRef<T>(initial: () -> T)
actual open class ThreadLocalRef<T>(initial: () -> T)
actual open class ThreadLocalRef<T>(initial: () -> T) : ThreadLocal<T>
actual open class ThreadLocalRef<T>(initial: () -> T)
+
+
expect open class ThreadLocalRef<T>(initial: () -> T)
actual open class ThreadLocalRef<T>(initial: () -> T)
actual open class ThreadLocalRef<T>(initial: () -> T) : ThreadLocal<T>
actual open class ThreadLocalRef<T>(initial: () -> T)
actual open class ThreadLocalRef<T>(initial: () -> T)
@@ -403,7 +403,7 @@

Functions

diff --git a/docs/assertk/assertk/notify-failure.html b/docs/assertk/assertk/notify-failure.html index cafc156f..82b3fd40 100644 --- a/docs/assertk/assertk/notify-failure.html +++ b/docs/assertk/assertk/notify-failure.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

notifyFailure

diff --git a/docs/assertk/assertk/table-of.html b/docs/assertk/assertk/table-of.html index c9cc2c82..e5c24170 100644 --- a/docs/assertk/assertk/table-of.html +++ b/docs/assertk/assertk/table-of.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

tableOf

fun tableOf(name1: String, name2: String): Table2Builder
fun tableOf(name1: String, name2: String, name3: String): Table3Builder
fun tableOf(name1: String, name2: String, name3: String, name4: String): Table4Builder

Builds a table with the given column names.

diff --git a/docs/assertk/assertk/value.html b/docs/assertk/assertk/value.html index 58a5d4a3..bd44e799 100644 --- a/docs/assertk/assertk/value.html +++ b/docs/assertk/assertk/value.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -66,7 +66,7 @@

value

diff --git a/docs/assertk/index.html b/docs/assertk/index.html index e1dc9e7a..3c230d26 100644 --- a/docs/assertk/index.html +++ b/docs/assertk/index.html @@ -41,7 +41,7 @@ assertk-project -
0.28.1 +
0.28.0
@@ -49,7 +49,7 @@ - +
-
+

assertk

Packages

-
-
+
+
- +
Link copied to clipboard
@@ -83,7 +83,7 @@

Packages

js
native
- +
@@ -130,7 +130,7 @@

Packages

diff --git a/docs/assertk/navigation.html b/docs/assertk/navigation.html index 57ddf5ec..80e06a20 100644 --- a/docs/assertk/navigation.html +++ b/docs/assertk/navigation.html @@ -1,9 +1,9 @@
-
+
-
+
@@ -102,7 +102,7 @@ tableOf()
-
+
diff --git a/docs/index.html b/docs/index.html index 695389b2..1a0f08c7 100644 --- a/docs/index.html +++ b/docs/index.html @@ -44,7 +44,7 @@
-0.28.1
+0.28.0
diff --git a/docs/navigation.html b/docs/navigation.html index 678156b9..df9197c1 100644 --- a/docs/navigation.html +++ b/docs/navigation.html @@ -1,9 +1,9 @@
-
+
-
+
@@ -102,7 +102,7 @@ tableOf()
-
+
diff --git a/docs/scripts/sourceset_dependencies.js b/docs/scripts/sourceset_dependencies.js index a5a11c1c..cb6d74e2 100644 --- a/docs/scripts/sourceset_dependencies.js +++ b/docs/scripts/sourceset_dependencies.js @@ -1 +1 @@ -sourceset_dependencies = '{":assertk:dokkaHtmlPartial/androidNativeArm32Main":[":assertk:dokkaHtmlPartial/androidNativeMain"],":assertk:dokkaHtmlPartial/androidNativeArm64Main":[":assertk:dokkaHtmlPartial/androidNativeMain"],":assertk:dokkaHtmlPartial/androidNativeMain":[":assertk:dokkaHtmlPartial/nativeMain"],":assertk:dokkaHtmlPartial/androidNativeX64Main":[":assertk:dokkaHtmlPartial/androidNativeMain"],":assertk:dokkaHtmlPartial/androidNativeX86Main":[":assertk:dokkaHtmlPartial/androidNativeMain"],":assertk:dokkaHtmlPartial/appleMain":[":assertk:dokkaHtmlPartial/nativeMain"],":assertk:dokkaHtmlPartial/commonMain":[],":assertk:dokkaHtmlPartial/iosArm64Main":[":assertk:dokkaHtmlPartial/iosMain"],":assertk:dokkaHtmlPartial/iosMain":[":assertk:dokkaHtmlPartial/appleMain"],":assertk:dokkaHtmlPartial/iosSimulatorArm64Main":[":assertk:dokkaHtmlPartial/iosMain"],":assertk:dokkaHtmlPartial/iosX64Main":[":assertk:dokkaHtmlPartial/iosMain"],":assertk:dokkaHtmlPartial/jsMain":[":assertk:dokkaHtmlPartial/commonMain"],":assertk:dokkaHtmlPartial/jvmMain":[":assertk:dokkaHtmlPartial/commonMain"],":assertk:dokkaHtmlPartial/linuxArm64Main":[":assertk:dokkaHtmlPartial/linuxMain"],":assertk:dokkaHtmlPartial/linuxMain":[":assertk:dokkaHtmlPartial/nativeMain"],":assertk:dokkaHtmlPartial/linuxX64Main":[":assertk:dokkaHtmlPartial/linuxMain"],":assertk:dokkaHtmlPartial/macosArm64Main":[":assertk:dokkaHtmlPartial/macosMain"],":assertk:dokkaHtmlPartial/macosMain":[":assertk:dokkaHtmlPartial/appleMain"],":assertk:dokkaHtmlPartial/macosX64Main":[":assertk:dokkaHtmlPartial/macosMain"],":assertk:dokkaHtmlPartial/mingwMain":[":assertk:dokkaHtmlPartial/nativeMain"],":assertk:dokkaHtmlPartial/mingwX64Main":[":assertk:dokkaHtmlPartial/mingwMain"],":assertk:dokkaHtmlPartial/nativeMain":[":assertk:dokkaHtmlPartial/commonMain"],":assertk:dokkaHtmlPartial/tvosArm64Main":[":assertk:dokkaHtmlPartial/tvosMain"],":assertk:dokkaHtmlPartial/tvosMain":[":assertk:dokkaHtmlPartial/appleMain"],":assertk:dokkaHtmlPartial/tvosSimulatorArm64Main":[":assertk:dokkaHtmlPartial/tvosMain"],":assertk:dokkaHtmlPartial/tvosX64Main":[":assertk:dokkaHtmlPartial/tvosMain"],":assertk:dokkaHtmlPartial/wasmJsMain":[":assertk:dokkaHtmlPartial/commonMain",":assertk:dokkaHtmlPartial/wasmMain"],":assertk:dokkaHtmlPartial/wasmMain":[],":assertk:dokkaHtmlPartial/wasmWasiMain":[":assertk:dokkaHtmlPartial/commonMain",":assertk:dokkaHtmlPartial/wasmMain"],":assertk:dokkaHtmlPartial/watchosArm32Main":[":assertk:dokkaHtmlPartial/watchosMain"],":assertk:dokkaHtmlPartial/watchosArm64Main":[":assertk:dokkaHtmlPartial/watchosMain"],":assertk:dokkaHtmlPartial/watchosDeviceArm64Main":[":assertk:dokkaHtmlPartial/watchosMain"],":assertk:dokkaHtmlPartial/watchosMain":[":assertk:dokkaHtmlPartial/appleMain"],":assertk:dokkaHtmlPartial/watchosSimulatorArm64Main":[":assertk:dokkaHtmlPartial/watchosMain"],":assertk:dokkaHtmlPartial/watchosX64Main":[":assertk:dokkaHtmlPartial/watchosMain"],":assertk-coroutines:dokkaHtmlPartial/androidNativeArm32Main":[":assertk-coroutines:dokkaHtmlPartial/androidNativeMain"],":assertk-coroutines:dokkaHtmlPartial/androidNativeArm64Main":[":assertk-coroutines:dokkaHtmlPartial/androidNativeMain"],":assertk-coroutines:dokkaHtmlPartial/androidNativeMain":[":assertk-coroutines:dokkaHtmlPartial/nativeMain"],":assertk-coroutines:dokkaHtmlPartial/androidNativeX64Main":[":assertk-coroutines:dokkaHtmlPartial/androidNativeMain"],":assertk-coroutines:dokkaHtmlPartial/androidNativeX86Main":[":assertk-coroutines:dokkaHtmlPartial/androidNativeMain"],":assertk-coroutines:dokkaHtmlPartial/appleMain":[":assertk-coroutines:dokkaHtmlPartial/nativeMain"],":assertk-coroutines:dokkaHtmlPartial/commonMain":[],":assertk-coroutines:dokkaHtmlPartial/iosArm64Main":[":assertk-coroutines:dokkaHtmlPartial/iosMain"],":assertk-coroutines:dokkaHtmlPartial/iosMain":[":assertk-coroutines:dokkaHtmlPartial/appleMain"],":assertk-coroutines:dokkaHtmlPartial/iosSimulatorArm64Main":[":assertk-coroutines:dokkaHtmlPartial/iosMain"],":assertk-coroutines:dokkaHtmlPartial/iosX64Main":[":assertk-coroutines:dokkaHtmlPartial/iosMain"],":assertk-coroutines:dokkaHtmlPartial/jsMain":[":assertk-coroutines:dokkaHtmlPartial/commonMain"],":assertk-coroutines:dokkaHtmlPartial/jvmMain":[":assertk-coroutines:dokkaHtmlPartial/commonMain"],":assertk-coroutines:dokkaHtmlPartial/linuxArm64Main":[":assertk-coroutines:dokkaHtmlPartial/linuxMain"],":assertk-coroutines:dokkaHtmlPartial/linuxMain":[":assertk-coroutines:dokkaHtmlPartial/nativeMain"],":assertk-coroutines:dokkaHtmlPartial/linuxX64Main":[":assertk-coroutines:dokkaHtmlPartial/linuxMain"],":assertk-coroutines:dokkaHtmlPartial/macosArm64Main":[":assertk-coroutines:dokkaHtmlPartial/macosMain"],":assertk-coroutines:dokkaHtmlPartial/macosMain":[":assertk-coroutines:dokkaHtmlPartial/appleMain"],":assertk-coroutines:dokkaHtmlPartial/macosX64Main":[":assertk-coroutines:dokkaHtmlPartial/macosMain"],":assertk-coroutines:dokkaHtmlPartial/mingwMain":[":assertk-coroutines:dokkaHtmlPartial/nativeMain"],":assertk-coroutines:dokkaHtmlPartial/mingwX64Main":[":assertk-coroutines:dokkaHtmlPartial/mingwMain"],":assertk-coroutines:dokkaHtmlPartial/nativeMain":[":assertk-coroutines:dokkaHtmlPartial/commonMain"],":assertk-coroutines:dokkaHtmlPartial/tvosArm64Main":[":assertk-coroutines:dokkaHtmlPartial/tvosMain"],":assertk-coroutines:dokkaHtmlPartial/tvosMain":[":assertk-coroutines:dokkaHtmlPartial/appleMain"],":assertk-coroutines:dokkaHtmlPartial/tvosSimulatorArm64Main":[":assertk-coroutines:dokkaHtmlPartial/tvosMain"],":assertk-coroutines:dokkaHtmlPartial/tvosX64Main":[":assertk-coroutines:dokkaHtmlPartial/tvosMain"],":assertk-coroutines:dokkaHtmlPartial/wasmJsMain":[":assertk-coroutines:dokkaHtmlPartial/commonMain",":assertk-coroutines:dokkaHtmlPartial/wasmMain"],":assertk-coroutines:dokkaHtmlPartial/wasmMain":[],":assertk-coroutines:dokkaHtmlPartial/watchosArm32Main":[":assertk-coroutines:dokkaHtmlPartial/watchosMain"],":assertk-coroutines:dokkaHtmlPartial/watchosArm64Main":[":assertk-coroutines:dokkaHtmlPartial/watchosMain"],":assertk-coroutines:dokkaHtmlPartial/watchosDeviceArm64Main":[":assertk-coroutines:dokkaHtmlPartial/watchosMain"],":assertk-coroutines:dokkaHtmlPartial/watchosMain":[":assertk-coroutines:dokkaHtmlPartial/appleMain"],":assertk-coroutines:dokkaHtmlPartial/watchosSimulatorArm64Main":[":assertk-coroutines:dokkaHtmlPartial/watchosMain"],":assertk-coroutines:dokkaHtmlPartial/watchosX64Main":[":assertk-coroutines:dokkaHtmlPartial/watchosMain"]}' \ No newline at end of file +sourceset_dependencies = '{":assertk:dokkaHtmlPartial/androidNativeArm32Main":[":assertk:dokkaHtmlPartial/androidNativeMain",":assertk:dokkaHtmlPartial/coroutinesMain"],":assertk:dokkaHtmlPartial/androidNativeArm64Main":[":assertk:dokkaHtmlPartial/androidNativeMain",":assertk:dokkaHtmlPartial/coroutinesMain"],":assertk:dokkaHtmlPartial/androidNativeMain":[":assertk:dokkaHtmlPartial/nativeMain"],":assertk:dokkaHtmlPartial/androidNativeX64Main":[":assertk:dokkaHtmlPartial/androidNativeMain",":assertk:dokkaHtmlPartial/coroutinesMain"],":assertk:dokkaHtmlPartial/androidNativeX86Main":[":assertk:dokkaHtmlPartial/androidNativeMain",":assertk:dokkaHtmlPartial/coroutinesMain"],":assertk:dokkaHtmlPartial/appleMain":[":assertk:dokkaHtmlPartial/nativeMain"],":assertk:dokkaHtmlPartial/commonMain":[],":assertk:dokkaHtmlPartial/coroutinesMain":[],":assertk:dokkaHtmlPartial/iosArm64Main":[":assertk:dokkaHtmlPartial/iosMain",":assertk:dokkaHtmlPartial/coroutinesMain"],":assertk:dokkaHtmlPartial/iosMain":[":assertk:dokkaHtmlPartial/appleMain"],":assertk:dokkaHtmlPartial/iosSimulatorArm64Main":[":assertk:dokkaHtmlPartial/iosMain",":assertk:dokkaHtmlPartial/coroutinesMain"],":assertk:dokkaHtmlPartial/iosX64Main":[":assertk:dokkaHtmlPartial/iosMain",":assertk:dokkaHtmlPartial/coroutinesMain"],":assertk:dokkaHtmlPartial/jsMain":[":assertk:dokkaHtmlPartial/commonMain",":assertk:dokkaHtmlPartial/coroutinesMain"],":assertk:dokkaHtmlPartial/jvmMain":[":assertk:dokkaHtmlPartial/commonMain",":assertk:dokkaHtmlPartial/coroutinesMain"],":assertk:dokkaHtmlPartial/linuxArm64Main":[":assertk:dokkaHtmlPartial/linuxMain",":assertk:dokkaHtmlPartial/coroutinesMain"],":assertk:dokkaHtmlPartial/linuxMain":[":assertk:dokkaHtmlPartial/nativeMain"],":assertk:dokkaHtmlPartial/linuxX64Main":[":assertk:dokkaHtmlPartial/linuxMain",":assertk:dokkaHtmlPartial/coroutinesMain"],":assertk:dokkaHtmlPartial/macosArm64Main":[":assertk:dokkaHtmlPartial/macosMain",":assertk:dokkaHtmlPartial/coroutinesMain"],":assertk:dokkaHtmlPartial/macosMain":[":assertk:dokkaHtmlPartial/appleMain"],":assertk:dokkaHtmlPartial/macosX64Main":[":assertk:dokkaHtmlPartial/macosMain",":assertk:dokkaHtmlPartial/coroutinesMain"],":assertk:dokkaHtmlPartial/mingwMain":[":assertk:dokkaHtmlPartial/nativeMain"],":assertk:dokkaHtmlPartial/mingwX64Main":[":assertk:dokkaHtmlPartial/mingwMain",":assertk:dokkaHtmlPartial/coroutinesMain"],":assertk:dokkaHtmlPartial/nativeMain":[":assertk:dokkaHtmlPartial/commonMain"],":assertk:dokkaHtmlPartial/tvosArm64Main":[":assertk:dokkaHtmlPartial/tvosMain",":assertk:dokkaHtmlPartial/coroutinesMain"],":assertk:dokkaHtmlPartial/tvosMain":[":assertk:dokkaHtmlPartial/appleMain"],":assertk:dokkaHtmlPartial/tvosSimulatorArm64Main":[":assertk:dokkaHtmlPartial/tvosMain",":assertk:dokkaHtmlPartial/coroutinesMain"],":assertk:dokkaHtmlPartial/tvosX64Main":[":assertk:dokkaHtmlPartial/tvosMain",":assertk:dokkaHtmlPartial/coroutinesMain"],":assertk:dokkaHtmlPartial/wasmJsMain":[":assertk:dokkaHtmlPartial/commonMain"],":assertk:dokkaHtmlPartial/watchosArm32Main":[":assertk:dokkaHtmlPartial/watchosMain",":assertk:dokkaHtmlPartial/coroutinesMain"],":assertk:dokkaHtmlPartial/watchosArm64Main":[":assertk:dokkaHtmlPartial/watchosMain",":assertk:dokkaHtmlPartial/coroutinesMain"],":assertk:dokkaHtmlPartial/watchosDeviceArm64Main":[":assertk:dokkaHtmlPartial/watchosMain",":assertk:dokkaHtmlPartial/coroutinesMain"],":assertk:dokkaHtmlPartial/watchosMain":[":assertk:dokkaHtmlPartial/appleMain"],":assertk:dokkaHtmlPartial/watchosSimulatorArm64Main":[":assertk:dokkaHtmlPartial/watchosMain",":assertk:dokkaHtmlPartial/coroutinesMain"],":assertk:dokkaHtmlPartial/watchosX64Main":[":assertk:dokkaHtmlPartial/watchosMain",":assertk:dokkaHtmlPartial/coroutinesMain"],":assertk-coroutines:dokkaHtmlPartial/androidNativeArm32Main":[":assertk-coroutines:dokkaHtmlPartial/androidNativeMain"],":assertk-coroutines:dokkaHtmlPartial/androidNativeArm64Main":[":assertk-coroutines:dokkaHtmlPartial/androidNativeMain"],":assertk-coroutines:dokkaHtmlPartial/androidNativeMain":[":assertk-coroutines:dokkaHtmlPartial/nativeMain"],":assertk-coroutines:dokkaHtmlPartial/androidNativeX64Main":[":assertk-coroutines:dokkaHtmlPartial/androidNativeMain"],":assertk-coroutines:dokkaHtmlPartial/androidNativeX86Main":[":assertk-coroutines:dokkaHtmlPartial/androidNativeMain"],":assertk-coroutines:dokkaHtmlPartial/appleMain":[":assertk-coroutines:dokkaHtmlPartial/nativeMain"],":assertk-coroutines:dokkaHtmlPartial/commonMain":[],":assertk-coroutines:dokkaHtmlPartial/iosArm64Main":[":assertk-coroutines:dokkaHtmlPartial/iosMain"],":assertk-coroutines:dokkaHtmlPartial/iosMain":[":assertk-coroutines:dokkaHtmlPartial/appleMain"],":assertk-coroutines:dokkaHtmlPartial/iosSimulatorArm64Main":[":assertk-coroutines:dokkaHtmlPartial/iosMain"],":assertk-coroutines:dokkaHtmlPartial/iosX64Main":[":assertk-coroutines:dokkaHtmlPartial/iosMain"],":assertk-coroutines:dokkaHtmlPartial/jsMain":[":assertk-coroutines:dokkaHtmlPartial/commonMain"],":assertk-coroutines:dokkaHtmlPartial/jvmMain":[":assertk-coroutines:dokkaHtmlPartial/commonMain"],":assertk-coroutines:dokkaHtmlPartial/linuxArm64Main":[":assertk-coroutines:dokkaHtmlPartial/linuxMain"],":assertk-coroutines:dokkaHtmlPartial/linuxMain":[":assertk-coroutines:dokkaHtmlPartial/nativeMain"],":assertk-coroutines:dokkaHtmlPartial/linuxX64Main":[":assertk-coroutines:dokkaHtmlPartial/linuxMain"],":assertk-coroutines:dokkaHtmlPartial/macosArm64Main":[":assertk-coroutines:dokkaHtmlPartial/macosMain"],":assertk-coroutines:dokkaHtmlPartial/macosMain":[":assertk-coroutines:dokkaHtmlPartial/appleMain"],":assertk-coroutines:dokkaHtmlPartial/macosX64Main":[":assertk-coroutines:dokkaHtmlPartial/macosMain"],":assertk-coroutines:dokkaHtmlPartial/mingwMain":[":assertk-coroutines:dokkaHtmlPartial/nativeMain"],":assertk-coroutines:dokkaHtmlPartial/mingwX64Main":[":assertk-coroutines:dokkaHtmlPartial/mingwMain"],":assertk-coroutines:dokkaHtmlPartial/nativeMain":[":assertk-coroutines:dokkaHtmlPartial/commonMain"],":assertk-coroutines:dokkaHtmlPartial/tvosArm64Main":[":assertk-coroutines:dokkaHtmlPartial/tvosMain"],":assertk-coroutines:dokkaHtmlPartial/tvosMain":[":assertk-coroutines:dokkaHtmlPartial/appleMain"],":assertk-coroutines:dokkaHtmlPartial/tvosSimulatorArm64Main":[":assertk-coroutines:dokkaHtmlPartial/tvosMain"],":assertk-coroutines:dokkaHtmlPartial/tvosX64Main":[":assertk-coroutines:dokkaHtmlPartial/tvosMain"],":assertk-coroutines:dokkaHtmlPartial/watchosArm32Main":[":assertk-coroutines:dokkaHtmlPartial/watchosMain"],":assertk-coroutines:dokkaHtmlPartial/watchosArm64Main":[":assertk-coroutines:dokkaHtmlPartial/watchosMain"],":assertk-coroutines:dokkaHtmlPartial/watchosDeviceArm64Main":[":assertk-coroutines:dokkaHtmlPartial/watchosMain"],":assertk-coroutines:dokkaHtmlPartial/watchosMain":[":assertk-coroutines:dokkaHtmlPartial/appleMain"],":assertk-coroutines:dokkaHtmlPartial/watchosSimulatorArm64Main":[":assertk-coroutines:dokkaHtmlPartial/watchosMain"],":assertk-coroutines:dokkaHtmlPartial/watchosX64Main":[":assertk-coroutines:dokkaHtmlPartial/watchosMain"]}' \ No newline at end of file