Merge pull request #831 from cyian-1756/moreUtilsUnitTests
Added some more unit tests
This commit is contained in:
commit
bf4553885a
@ -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