
commonMain.io.kotest.assertions.show.StringShow.kt Maven / Gradle / Ivy
package io.kotest.assertions.show
object StringShow : Show {
private fun String.wrap() = """"$this""""
override fun show(a: String): Printed = when {
a == "" -> "".printed()
a.isBlank() -> a.replace(" ", "\\s").wrap().printed()
else -> a.wrap().printed()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy