mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
test(AppUpdateCheckerTest): Add more test cases
This commit is contained in:
parent
736e608db2
commit
11fa491a6b
1 changed files with 5 additions and 0 deletions
|
@ -51,9 +51,14 @@ class AppUpdateCheckerTest {
|
|||
|
||||
@Test
|
||||
fun `Beta should get Prod build`() {
|
||||
assertTrue(isNewVersion("1.2.4.1", "1.2.3-b2"))
|
||||
assertTrue(isNewVersion("1.2.4", "1.2.3-b2"))
|
||||
assertTrue(isNewVersion("1.2.3", "1.2.3-b2"))
|
||||
assertTrue(isNewVersion("1.2.3", "1.2.2.1-b2"))
|
||||
|
||||
assertFalse(isNewVersion("1.2.2.1", "1.2.3-b2"))
|
||||
assertFalse(isNewVersion("1.2.2", "1.2.3-b2"))
|
||||
assertFalse(isNewVersion("1.2.2", "1.2.2.1-b2"))
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue