mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2026-01-29 06:01:03 +00:00
20 lines
471 B
Kotlin
20 lines
471 B
Kotlin
package app.revanced.patcher.util
|
|
|
|
import org.junit.jupiter.api.Test
|
|
|
|
import org.junit.jupiter.api.Assertions.*
|
|
|
|
internal class VersionReaderTest {
|
|
@Test
|
|
fun read() {
|
|
val version = VersionReader.read()
|
|
assertNotNull(version)
|
|
assertTrue(version.isNotEmpty())
|
|
val parts = version.split(".")
|
|
assertEquals(3, parts.size)
|
|
parts.forEach {
|
|
assertTrue(it.toInt() >= 0)
|
|
}
|
|
println(version)
|
|
}
|
|
} |