You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.1 KiB
47 lines
1.1 KiB
package com.keylesspalace.tusky.util
|
|
|
|
import org.junit.Assert.*
|
|
import org.junit.Test
|
|
|
|
class EmojiCompatFontTest {
|
|
|
|
@Test
|
|
fun testCompareVersions() {
|
|
|
|
assertEquals(
|
|
-1,
|
|
EmojiCompatFont.compareVersions(
|
|
listOf(0),
|
|
listOf(1, 2, 3)
|
|
)
|
|
)
|
|
assertEquals(
|
|
1,
|
|
EmojiCompatFont.compareVersions(
|
|
listOf(1, 2, 3),
|
|
listOf(0, 0, 0)
|
|
)
|
|
)
|
|
assertEquals(
|
|
-1,
|
|
EmojiCompatFont.compareVersions(
|
|
listOf(1, 0, 1),
|
|
listOf(1, 1, 0)
|
|
)
|
|
)
|
|
assertEquals(
|
|
0,
|
|
EmojiCompatFont.compareVersions(
|
|
listOf(4, 5, 6),
|
|
listOf(4, 5, 6)
|
|
)
|
|
)
|
|
assertEquals(
|
|
0,
|
|
EmojiCompatFont.compareVersions(
|
|
listOf(0, 0),
|
|
listOf(0)
|
|
)
|
|
)
|
|
}
|
|
} |