add first UnitTest
This commit is contained in:
23
app/src/test/java/org/mian/gitnex/helpers/VersionTest.java
Normal file
23
app/src/test/java/org/mian/gitnex/helpers/VersionTest.java
Normal file
@ -0,0 +1,23 @@
|
||||
package org.mian.gitnex.helpers;
|
||||
|
||||
/**
|
||||
* Author 6543
|
||||
*/
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
public class VersionTest {
|
||||
|
||||
@Test
|
||||
public void equal() {
|
||||
Assert.assertFalse(new Version("1.12.0").equals("1.12.0"));
|
||||
Assert.assertFalse(new Version("1.12.0").equals(new Version("1.12.0")));
|
||||
Assert.assertFalse(new Version("1.12.0").equals("1.12"));
|
||||
Assert.assertFalse(new Version("1.12.0").equals("1.12.0+dev-211-g316db0fe7"));
|
||||
Assert.assertFalse(new Version("1.12.0").equals("v1.12"));
|
||||
Assert.assertFalse(new Version("v1.12.0").equals("1.12.0"));
|
||||
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user