commonTest.io.mths.kava.processor.AssertEqualsCode.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kava-processor Show documentation
Show all versions of kava-processor Show documentation
The KSP Kava Annotation Processor to generate validation extensions.
The newest version!
package io.mths.kava.processor
import org.intellij.lang.annotations.Language
import kotlin.test.assertEquals
fun assertEqualsCode(
@Language("kotlin") expected: String,
@Language("kotlin") actual: String
) = assertEquals(
expected.removeWhitespaces(),
actual.removeWhitespaces()
)
private fun String.removeWhitespaces() =
replace("\\s".toRegex(), "")
© 2015 - 2025 Weber Informatics LLC | Privacy Policy