diff options
author | Arne Schwabe <arne@rfc2549.org> | 2021-10-03 02:29:42 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2021-10-03 02:53:26 +0200 |
commit | c3a0f99f9058b5ee602a9f19f7453804d4d26928 (patch) | |
tree | ee45ddf9fc2ce4b21273a71e7be1b6367628f83b /main/src/testui | |
parent | ba7fedf2030dcdf13f7a2cf83559e4daa14f623c (diff) |
Move Ui specific unit tests to Ui specific test file
Diffstat (limited to 'main/src/testui')
-rw-r--r-- | main/src/testui/java/de/blinkt/openvpn/core/TestUiUtils.kt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/main/src/testui/java/de/blinkt/openvpn/core/TestUiUtils.kt b/main/src/testui/java/de/blinkt/openvpn/core/TestUiUtils.kt new file mode 100644 index 00000000..8bc2e4fa --- /dev/null +++ b/main/src/testui/java/de/blinkt/openvpn/core/TestUiUtils.kt @@ -0,0 +1,12 @@ +import de.blinkt.openvpn.fragments.Utils +import org.junit.Assert +import org.junit.Test + +class TestUiUtils { + @Test + fun testCompatModeUtil() { + Assert.assertEquals(2, Utils.mapCompatVer(20400)) + Assert.assertEquals(0, Utils.mapCompatVer(20707)) + Assert.assertEquals(3, Utils.mapCompatVer(11723)) + } +}
\ No newline at end of file |