0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-20 12:02:16 +02:00

[Kotlin Cleanup] HtmlColorsTest

This commit is contained in:
oyeraghib 2022-05-07 16:44:35 +05:30 committed by David Allison
parent 70d8cfc889
commit 800e8bdad6

View File

@ -16,16 +16,14 @@
package com.ichi2.themes
import com.ichi2.themes.HtmlColors.invertColors
import com.ichi2.utils.KotlinCleanup
import org.hamcrest.MatcherAssert.assertThat
import org.hamcrest.Matchers.`is`
import org.hamcrest.Matchers.equalTo
import org.junit.Test
@KotlinCleanup("`is` -> equalTo")
class HtmlColorsTest {
@Test
fun testDleColorInversion() {
// An invalid color code should not be changed.
assertThat(invertColors(" color:DLE "), `is`(" color:DLE "))
assertThat(invertColors(" color:DLE "), equalTo(" color:DLE "))
}
}