From 1369db1c81bacd71101a4b1bf64fd8ed6eded4c6 Mon Sep 17 00:00:00 2001 From: Rob Fletcher Date: Fri, 17 Aug 2018 00:15:53 -0700 Subject: [PATCH] KDoc for contentEquals --- .../main/kotlin/strikt/assertions/Arrays.kt | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/strikt-core/src/main/kotlin/strikt/assertions/Arrays.kt b/strikt-core/src/main/kotlin/strikt/assertions/Arrays.kt index e796e929..6ca8b638 100644 --- a/strikt-core/src/main/kotlin/strikt/assertions/Arrays.kt +++ b/strikt-core/src/main/kotlin/strikt/assertions/Arrays.kt @@ -2,46 +2,82 @@ package strikt.assertions import strikt.api.Assertion +/** + * Asserts that the subject's content is equal to that of [other] according to + * [Array.contentEquals]. + */ fun Assertion.Builder>.contentEquals(other: Array): Assertion.Builder> = passesIf("array content equals %s", other) { it.contentEquals(other) } +/** + * Asserts that the subject's content is equal to that of [other] according to + * [BooleanArray.contentEquals]. + */ fun Assertion.Builder.contentEquals(other: BooleanArray): Assertion.Builder = passesIf("array content equals %s", other) { it.contentEquals(other) } +/** + * Asserts that the subject's content is equal to that of [other] according to + * [ByteArray.contentEquals]. + */ fun Assertion.Builder.contentEquals(other: ByteArray): Assertion.Builder = passesIf("array content equals %s", other) { it.contentEquals(other) } +/** + * Asserts that the subject's content is equal to that of [other] according to + * [ShortArray.contentEquals]. + */ fun Assertion.Builder.contentEquals(other: ShortArray): Assertion.Builder = passesIf("array content equals %s", other) { it.contentEquals(other) } +/** + * Asserts that the subject's content is equal to that of [other] according to + * [IntArray.contentEquals]. + */ fun Assertion.Builder.contentEquals(other: IntArray): Assertion.Builder = passesIf("array content equals %s", other) { it.contentEquals(other) } +/** + * Asserts that the subject's content is equal to that of [other] according to + * [LongArray.contentEquals]. + */ fun Assertion.Builder.contentEquals(other: LongArray): Assertion.Builder = passesIf("array content equals %s", other) { it.contentEquals(other) } +/** + * Asserts that the subject's content is equal to that of [other] according to + * [FloatArray.contentEquals]. + */ fun Assertion.Builder.contentEquals(other: FloatArray): Assertion.Builder = passesIf("array content equals %s", other) { it.contentEquals(other) } +/** + * Asserts that the subject's content is equal to that of [other] according to + * [DoubleArray.contentEquals]. + */ fun Assertion.Builder.contentEquals(other: DoubleArray): Assertion.Builder = passesIf("array content equals %s", other) { it.contentEquals(other) } +/** + * Asserts that the subject's content is equal to that of [other] according to + * [CharArray.contentEquals]. + */ fun Assertion.Builder.contentEquals(other: CharArray): Assertion.Builder = passesIf("array content equals %s", other) { it.contentEquals(other)