jvmTest.com.bkahlert.kommons.test.SLF4JTest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kommons-test Show documentation
Show all versions of kommons-test Show documentation
Kommons Test is a Kotlin Multiplatform Library to ease testing.
package com.bkahlert.kommons.test
import io.kotest.matchers.shouldBe
import org.junit.jupiter.api.Test
class SLF4JTest {
@Test fun format() = test {
SLF4J.format("A {} C {} E", "B", "D") shouldBe "A B C D E"
SLF4J.format("A {} C {} E", "B", "D", "Z") shouldBe "A B C D E"
SLF4J.format("A {} C {} E", "B") shouldBe "A B C {1} E"
}
}