assertEquals instead of assertTrue.
This commit is contained in:
parent
c3675e848d
commit
b590486ffd
1 changed files with 3 additions and 2 deletions
|
@ -36,6 +36,7 @@ import org.jetbrains.spek.api.dsl.describe
|
||||||
import org.jetbrains.spek.api.dsl.given
|
import org.jetbrains.spek.api.dsl.given
|
||||||
import org.jetbrains.spek.api.dsl.it
|
import org.jetbrains.spek.api.dsl.it
|
||||||
import org.jetbrains.spek.api.dsl.on
|
import org.jetbrains.spek.api.dsl.on
|
||||||
|
import kotlin.test.assertEquals
|
||||||
import kotlin.test.assertTrue
|
import kotlin.test.assertTrue
|
||||||
|
|
||||||
@Suppress("unused")
|
@Suppress("unused")
|
||||||
|
@ -66,12 +67,12 @@ object SemverConfigSpec : Spek({
|
||||||
on("defaults") {
|
on("defaults") {
|
||||||
defaults.forEachIndexed { i, d ->
|
defaults.forEachIndexed { i, d ->
|
||||||
it("should be the same: ${vars[i]}, ${config.keysPrefix}$d") {
|
it("should be the same: ${vars[i]}, ${config.keysPrefix}$d") {
|
||||||
assertTrue(vars[i] == "${config.keysPrefix}$d")
|
assertEquals(vars[i], "${config.keysPrefix}$d")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
on("should be version.properties") {
|
on("should be version.properties") {
|
||||||
assertTrue(config.properties == "version.properties")
|
assertEquals(config.properties, "version.properties")
|
||||||
}
|
}
|
||||||
on("set keys to test.xxx") {
|
on("set keys to test.xxx") {
|
||||||
config.keysPrefix = "test."
|
config.keysPrefix = "test."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue