Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

upgrade kotest to 5.2.1 #149

Merged
merged 8 commits into from
Mar 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ plugins {
id("maven-publish")
signing
id("org.jetbrains.dokka") version "1.6.10"
id("io.kotest.multiplatform") version "5.1.0"
id("io.kotest.multiplatform") version "5.2.1"
id("ru.vyarus.animalsniffer") version "1.5.4"
}

Expand Down
8 changes: 4 additions & 4 deletions kotest-assertions-arrow/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ kotlin {
val commonMain by getting {
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib-common:1.6.10")
implementation("io.kotest:kotest-assertions-core:5.1.0")
implementation("io.kotest:kotest-assertions-core:5.2.1")
compileOnly("io.arrow-kt:arrow-core:1.0.1")
}
}
Expand All @@ -164,8 +164,8 @@ kotlin {
val commonTest by getting {
dependsOn(commonMain)
dependencies {
implementation("io.kotest:kotest-framework-engine:5.1.0")
implementation("io.kotest:kotest-property:5.1.0")
implementation("io.kotest:kotest-framework-engine:5.2.1")
implementation("io.kotest:kotest-property:5.2.1")
implementation("io.arrow-kt:arrow-core:1.0.1")
}
}
Expand All @@ -174,7 +174,7 @@ kotlin {
dependsOn(commonTest)
dependsOn(jvmMain)
dependencies {
implementation("io.kotest:kotest-runner-junit5-jvm:5.1.0")
implementation("io.kotest:kotest-runner-junit5-jvm:5.2.1")
}
}

Expand Down
14 changes: 7 additions & 7 deletions kotest-property-arrow-optics/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ kotlin {
val commonMain by getting {
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib-common:1.6.10")
implementation("io.kotest:kotest-assertions-core:5.1.0")
implementation("io.kotest:kotest-assertions-core:5.2.1")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0")
implementation("io.kotest:kotest-framework-api:5.1.0")
implementation("io.kotest:kotest-property:5.1.0")
implementation("io.kotest:kotest-framework-api:5.2.1")
implementation("io.kotest:kotest-property:5.2.1")
compileOnly("io.arrow-kt:arrow-optics:1.0.1")
api(project(propertyArrowCore))
}
Expand All @@ -165,9 +165,9 @@ kotlin {
dependsOn(commonMain)
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0")
implementation("io.kotest:kotest-framework-engine:5.1.0")
implementation("io.kotest:kotest-framework-api:5.1.0")
implementation("io.kotest:kotest-property:5.1.0")
implementation("io.kotest:kotest-framework-engine:5.2.1")
implementation("io.kotest:kotest-framework-api:5.2.1")
implementation("io.kotest:kotest-property:5.2.1")
implementation("io.arrow-kt:arrow-optics:1.0.1")
implementation(project(assertionsArrowCore))
}
Expand All @@ -181,7 +181,7 @@ kotlin {
dependsOn(commonTest)
dependsOn(jvmMain)
dependencies {
implementation("io.kotest:kotest-runner-junit5-jvm:5.1.0")
implementation("io.kotest:kotest-runner-junit5-jvm:5.2.1")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,43 +15,42 @@ import io.kotest.property.arrow.core.tuple10
import io.kotest.property.arrow.laws.testLaws

class TraversalTests : StringSpec({
"Traversal Laws for Optional" {
testLaws(
TraversalLaws.laws(
traversal = Optional.listHead<Int>(),
aGen = Arb.list(Arb.int()),
bGen = Arb.int(),
funcGen = Arb.functionAToB(Arb.int()),
testLaws(
"Traversal Laws for Optional",
TraversalLaws.laws(
traversal = Optional.listHead<Int>(),
aGen = Arb.list(Arb.int()),
bGen = Arb.int(),
funcGen = Arb.functionAToB(Arb.int()),
),
TraversalLaws.laws(
traversal = Traversal.either(),
aGen = Arb.either(Arb.string(), Arb.int()),
bGen = Arb.int(),
funcGen = Arb.functionAToB(Arb.int()),
),
TraversalLaws.laws(
traversal = Traversal.pair(),
aGen = Arb.pair(Arb.boolean(), Arb.boolean()),
bGen = Arb.boolean(),
funcGen = Arb.functionAToB(Arb.boolean()),
),
TraversalLaws.laws(
traversal = Traversal.tuple10(),
aGen = Arb.tuple10(
Arb.boolean(),
Arb.boolean(),
Arb.boolean(),
Arb.boolean(),
Arb.boolean(),
Arb.boolean(),
Arb.boolean(),
Arb.boolean(),
Arb.boolean(),
Arb.boolean()
),
TraversalLaws.laws(
traversal = Traversal.either(),
aGen = Arb.either(Arb.string(), Arb.int()),
bGen = Arb.int(),
funcGen = Arb.functionAToB(Arb.int()),
),
TraversalLaws.laws(
traversal = Traversal.pair(),
aGen = Arb.pair(Arb.boolean(), Arb.boolean()),
bGen = Arb.boolean(),
funcGen = Arb.functionAToB(Arb.boolean()),
),
TraversalLaws.laws(
traversal = Traversal.tuple10(),
aGen = Arb.tuple10(
Arb.boolean(),
Arb.boolean(),
Arb.boolean(),
Arb.boolean(),
Arb.boolean(),
Arb.boolean(),
Arb.boolean(),
Arb.boolean(),
Arb.boolean(),
Arb.boolean()
),
bGen = Arb.boolean(),
funcGen = Arb.functionAToB(Arb.boolean()),
)
bGen = Arb.boolean(),
funcGen = Arb.functionAToB(Arb.boolean()),
)
}
)
})
14 changes: 7 additions & 7 deletions kotest-property-arrow/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ kotlin {
val commonMain by getting {
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib-common:1.6.10")
implementation("io.kotest:kotest-assertions-core:5.1.0")
implementation("io.kotest:kotest-framework-api:5.1.0")
implementation("io.kotest:kotest-property:5.1.0")
implementation("io.kotest:kotest-assertions-core:5.2.1")
implementation("io.kotest:kotest-framework-api:5.2.1")
implementation("io.kotest:kotest-property:5.2.1")
compileOnly("io.arrow-kt:arrow-core:1.0.1")
}
}
Expand All @@ -163,9 +163,9 @@ kotlin {
dependsOn(commonMain)
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0")
implementation("io.kotest:kotest-framework-engine:5.1.0")
implementation("io.kotest:kotest-framework-api:5.1.0")
implementation("io.kotest:kotest-property:5.1.0")
implementation("io.kotest:kotest-framework-engine:5.2.1")
implementation("io.kotest:kotest-framework-api:5.2.1")
implementation("io.kotest:kotest-property:5.2.1")
implementation("io.arrow-kt:arrow-core:1.0.1")
implementation(project(assertionsArrowCore))
}
Expand All @@ -179,7 +179,7 @@ kotlin {
dependsOn(commonTest)
dependsOn(jvmMain)
dependencies {
implementation("io.kotest:kotest-runner-junit5-jvm:5.1.0")
implementation("io.kotest:kotest-runner-junit5-jvm:5.2.1")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@ import io.kotest.property.arbitrary.string
import io.kotest.property.arrow.laws.testLaws

class MonoidLawTests : StringSpec({
"Boolean, Int, String obeys MonoidLaws" {
testLaws(
MonoidLaws.laws(Monoid.boolean(), Arb.boolean()),
MonoidLaws.laws(Monoid.int(), Arb.int()),
MonoidLaws.laws(Monoid.string(), Arb.string())
)
}
testLaws("boolean obeys monoid laws", MonoidLaws.laws(Monoid.boolean(), Arb.boolean()))
testLaws("int obeys monoid laws", MonoidLaws.laws(Monoid.int(), Arb.int()))
testLaws("string obeys monoid laws", MonoidLaws.laws(Monoid.string(), Arb.string()))
})