Added some more unit tests
This commit is contained in:
parent
24b1c7175e
commit
c83d93a2e3
@ -3,6 +3,9 @@ package com.rarchives.ripme.tst;
|
||||
import junit.framework.TestCase;
|
||||
import com.rarchives.ripme.utils.Utils;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
|
||||
public class UtilsTest extends TestCase {
|
||||
|
||||
public void testGetEXTFromMagic() {
|
||||
@ -31,4 +34,12 @@ public class UtilsTest extends TestCase {
|
||||
assert(!Utils.getListOfAlbumRippers().isEmpty());
|
||||
}
|
||||
|
||||
public void testGetByteStatusText() {
|
||||
assertEquals("5% - 500.00iB / 97.66KiB", Utils.getByteStatusText(5, 500, 100000));
|
||||
}
|
||||
|
||||
public void testBetween() {
|
||||
assertEquals(Arrays.asList(" is a "), Utils.between("This is a test", "This", "test"));
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user