All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonTest.com.bkahlert.kommons.test.fixtures.kt Maven / Gradle / Ivy

There is a newer version: 2.8.0
Show newest version
package com.bkahlert.kommons.test

import io.kotest.assertions.throwables.shouldThrow
import io.kotest.matchers.string.shouldContain

/** A tab */
internal const val t = "\t"

internal enum class EmptyEnum

internal enum class FooBarEnum {
    @Suppress("EnumEntryName") foo_bar,
    FOO_BAR,
}

internal val supportsSoftAssertions by lazy {
    val error = shouldThrow {
        forAllEnumValues {
            it.name shouldContain "baz"
            it.name shouldContain "BAZ"
        }
    }
    checkNotNull(error.message) {
        "Failed to check soft assertions support"
    }.contains("The following 2 assertions failed")
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy