Skip to content

Commit

Permalink
Add samples for arrayAssertions of api-infix (#857)
Browse files Browse the repository at this point in the history
* Add samples for arrayAssertions of api-infix
  • Loading branch information
szatyinadam authored Apr 4, 2021
1 parent b23f97c commit 97db672
Show file tree
Hide file tree
Showing 3 changed files with 301 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import kotlin.jvm.JvmName
*
* @return The newly created [Expect] for the transformed subject.
*
* @sample ch.tutteli.atrium.api.infix.en_GB.samples.deprecated.ArrayAssertionSamples.asListFeature
*
* @since 0.12.0
*/
infix fun <E> Expect<out Array<out E>>.asList(@Suppress("UNUSED_PARAMETER") o: o): Expect<List<E>> =
Expand All @@ -27,6 +29,8 @@ infix fun <E> Expect<out Array<out E>>.asList(@Suppress("UNUSED_PARAMETER") o: o
*
* @return The newly created [Expect] for the transformed subject.
*
* @sample ch.tutteli.atrium.api.infix.en_GB.samples.deprecated.ArrayAssertionSamples.asList
*
* @since 0.12.0
*/
infix fun <E> Expect<Array<E>>.asList(assertionCreator: Expect<List<E>>.() -> Unit): Expect<Array<E>> =
Expand All @@ -41,6 +45,8 @@ infix fun <E> Expect<Array<E>>.asList(assertionCreator: Expect<List<E>>.() -> Un
*
* @return The newly created [Expect] for the transformed subject.
*
* @sample ch.tutteli.atrium.api.infix.en_GB.samples.deprecated.ArrayAssertionSamples.asListEOut
*
* @since 0.12.0
*/
@JvmName("asListEOut")
Expand All @@ -55,6 +61,8 @@ infix fun <E> Expect<Array<out E>>.asList(assertionCreator: Expect<List<E>>.() -
*
* @return The newly created [Expect] for the transformed subject.
*
* @sample ch.tutteli.atrium.api.infix.en_GB.samples.deprecated.ArrayAssertionSamples.byteArrAsListFeature
*
* @since 0.12.0
*/
@JvmName("byteArrAsList")
Expand All @@ -70,6 +78,8 @@ infix fun Expect<ByteArray>.asList(@Suppress("UNUSED_PARAMETER") o: o): Expect<L
*
* @return The newly created [Expect] for the transformed subject.
*
* @sample ch.tutteli.atrium.api.infix.en_GB.samples.deprecated.ArrayAssertionSamples.byteArrAsList
*
* @since 0.12.0
*/
@JvmName("byteArrAsList")
Expand All @@ -85,6 +95,8 @@ infix fun Expect<ByteArray>.asList(assertionCreator: Expect<List<Byte>>.() -> Un
*
* @return The newly created [Expect] for the transformed subject.
*
* @sample ch.tutteli.atrium.api.infix.en_GB.samples.deprecated.ArrayAssertionSamples.charArrAsListFeature
*
* @since 0.12.0
*/
@JvmName("charArrAsList")
Expand All @@ -100,6 +112,8 @@ infix fun Expect<CharArray>.asList(@Suppress("UNUSED_PARAMETER") o: o): Expect<L
*
* @return The newly created [Expect] for the transformed subject.
*
* @sample ch.tutteli.atrium.api.infix.en_GB.samples.deprecated.ArrayAssertionSamples.charArrAsList
*
* @since 0.12.0
*/
@JvmName("charArrAsList")
Expand All @@ -115,6 +129,8 @@ infix fun Expect<CharArray>.asList(assertionCreator: Expect<List<Char>>.() -> Un
*
* @return The newly created [Expect] for the transformed subject.
*
* @sample ch.tutteli.atrium.api.infix.en_GB.samples.deprecated.ArrayAssertionSamples.shortArrAsListFeature
*
* @since 0.12.0
*/
@JvmName("shortArrAsList")
Expand All @@ -130,6 +146,8 @@ infix fun Expect<ShortArray>.asList(@Suppress("UNUSED_PARAMETER") o: o): Expect<
*
* @return The newly created [Expect] for the transformed subject.
*
* @sample ch.tutteli.atrium.api.infix.en_GB.samples.deprecated.ArrayAssertionSamples.shortArrAsList
*
* @since 0.12.0
*/
@JvmName("shortArrAsList")
Expand All @@ -145,6 +163,8 @@ infix fun Expect<ShortArray>.asList(assertionCreator: Expect<List<Short>>.() ->
*
* @return The newly created [Expect] for the transformed subject.
*
* @sample ch.tutteli.atrium.api.infix.en_GB.samples.deprecated.ArrayAssertionSamples.intArrAsListFeature
*
* @since 0.12.0
*/
@JvmName("intArrAsList")
Expand All @@ -160,6 +180,8 @@ infix fun Expect<IntArray>.asList(@Suppress("UNUSED_PARAMETER") o: o): Expect<Li
*
* @return The newly created [Expect] for the transformed subject.
*
* @sample ch.tutteli.atrium.api.infix.en_GB.samples.deprecated.ArrayAssertionSamples.intArrAsList
*
* @since 0.12.0
*/
@JvmName("intArrAsList")
Expand All @@ -175,6 +197,8 @@ infix fun Expect<IntArray>.asList(assertionCreator: Expect<List<Int>>.() -> Unit
*
* @return The newly created [Expect] for the transformed subject.
*
* @sample ch.tutteli.atrium.api.infix.en_GB.samples.deprecated.ArrayAssertionSamples.longArrAsListFeature
*
* @since 0.12.0
*/
@JvmName("longArrAsList")
Expand All @@ -190,6 +214,8 @@ infix fun Expect<LongArray>.asList(@Suppress("UNUSED_PARAMETER") o: o): Expect<L
*
* @return The newly created [Expect] for the transformed subject.
*
* @sample ch.tutteli.atrium.api.infix.en_GB.samples.deprecated.ArrayAssertionSamples.longArrAsList
*
* @since 0.12.0
*/
@JvmName("longArrAsList")
Expand All @@ -205,6 +231,8 @@ infix fun Expect<LongArray>.asList(assertionCreator: Expect<List<Long>>.() -> Un
*
* @return The newly created [Expect] for the transformed subject.
*
* @sample ch.tutteli.atrium.api.infix.en_GB.samples.deprecated.ArrayAssertionSamples.floatArrAsListFeature
*
* @since 0.12.0
*/
@JvmName("floatArrAsList")
Expand All @@ -220,6 +248,8 @@ infix fun Expect<FloatArray>.asList(@Suppress("UNUSED_PARAMETER") o: o): Expect<
*
* @return The newly created [Expect] for the transformed subject.
*
* @sample ch.tutteli.atrium.api.infix.en_GB.samples.deprecated.ArrayAssertionSamples.floatArrAsList
*
* @since 0.12.0
*/
@JvmName("floatArrAsList")
Expand All @@ -235,6 +265,8 @@ infix fun Expect<FloatArray>.asList(assertionCreator: Expect<List<Float>>.() ->
*
* @return The newly created [Expect] for the transformed subject.
*
* @sample ch.tutteli.atrium.api.infix.en_GB.samples.deprecated.ArrayAssertionSamples.doubleArrAsListFeature
*
* @since 0.12.0
*/
@JvmName("doubleArrAsList")
Expand All @@ -250,6 +282,8 @@ infix fun Expect<DoubleArray>.asList(@Suppress("UNUSED_PARAMETER") o: o): Expect
*
* @return The newly created [Expect] for the transformed subject.
*
* @sample ch.tutteli.atrium.api.infix.en_GB.samples.deprecated.ArrayAssertionSamples.doubleArrAsList
*
* @since 0.12.0
*/
@JvmName("doubleArrAsList")
Expand All @@ -265,6 +299,8 @@ infix fun Expect<DoubleArray>.asList(assertionCreator: Expect<List<Double>>.() -
*
* @return The newly created [Expect] for the transformed subject.
*
* @sample ch.tutteli.atrium.api.infix.en_GB.samples.deprecated.ArrayAssertionSamples.booleanArrAsListFeature
*
* @since 0.12.0
*/
@JvmName("boolArrAsList")
Expand All @@ -280,6 +316,8 @@ infix fun Expect<BooleanArray>.asList(@Suppress("UNUSED_PARAMETER") o: o): Expec
*
* @return The newly created [Expect] for the transformed subject.
*
* @sample ch.tutteli.atrium.api.infix.en_GB.samples.deprecated.ArrayAssertionSamples.booleanArrAsList
*
* @since 0.12.0
*/
@JvmName("boolArrAsList")
Expand Down
Loading

0 comments on commit 97db672

Please sign in to comment.