summaryrefslogtreecommitdiff
path: root/main/src/testui
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/testui')
-rw-r--r--main/src/testui/java/de/blinkt/openvpn/core/TestUiUtils.kt12
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