diff options
author | Allan Wang <me@allanwang.ca> | 2018-10-08 21:11:03 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-08 21:11:03 -0400 |
commit | 49d829355be470889a5624f562be24cc81b7442e (patch) | |
tree | 2c74c35e2de90f1ab40d1dd4153627ac5fd380d0 /app/src/test | |
parent | e113308923e319a98a8800f95aaba1998d50e7a2 (diff) | |
download | frost-49d829355be470889a5624f562be24cc81b7442e.tar.gz frost-49d829355be470889a5624f562be24cc81b7442e.tar.bz2 frost-49d829355be470889a5624f562be24cc81b7442e.zip |
Update when bugsnag gets added (#1128)
Diffstat (limited to 'app/src/test')
-rw-r--r-- | app/src/test/kotlin/com/pitchedapps/frost/utils/BuildUtilsTest.kt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app/src/test/kotlin/com/pitchedapps/frost/utils/BuildUtilsTest.kt b/app/src/test/kotlin/com/pitchedapps/frost/utils/BuildUtilsTest.kt new file mode 100644 index 00000000..02c879f2 --- /dev/null +++ b/app/src/test/kotlin/com/pitchedapps/frost/utils/BuildUtilsTest.kt @@ -0,0 +1,22 @@ +package com.pitchedapps.frost.utils + +import com.pitchedapps.frost.BuildConfig +import org.junit.Test +import kotlin.test.assertEquals +import kotlin.test.assertNotNull +import kotlin.test.assertNull + +class BuildUtilsTest { + + @Test + fun matchingVersions() { + assertNull(BuildUtils.match("unknown")) + assertEquals(BuildUtils.Data("1.0.0", ""), BuildUtils.match("1.0.0")) + assertEquals(BuildUtils.Data("1.0.1", "22-asdf"), BuildUtils.match("1.0.1-22-asdf")) + } + + @Test + fun androidTests() { + assertNotNull(BuildUtils.match(BuildConfig.VERSION_NAME)) + } +}
\ No newline at end of file |