mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-28 08:10:11 +02:00
Added some more unit tests
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user