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

commonTest.io.mths.kava.processor.AssertEqualsCode.kt Maven / Gradle / Ivy

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