mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-12-23 11:21:29 +00:00
Removed tests that rely on translations being the same.
This commit is contained in:
parent
e2a12fe3d2
commit
e2b9a8b813
1 changed files with 0 additions and 10 deletions
|
@ -75,16 +75,6 @@ public class RestApiTest extends AndroidTestCase {
|
||||||
public void testGetFolders() {
|
public void testGetFolders() {
|
||||||
assertNotNull(mApi.getFolders());
|
assertNotNull(mApi.getFolders());
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testReadableFileSize() {
|
|
||||||
assertEquals("1 MiB", RestApi.readableFileSize(getContext(), 1048576));
|
|
||||||
assertEquals("1 GiB", RestApi.readableFileSize(getContext(), 1073741824));
|
|
||||||
}
|
|
||||||
|
|
||||||
public void testGetReadableTransferRate() {
|
|
||||||
assertEquals("1 MiB/s", RestApi.readableTransferRate(getContext(), 8388608L));
|
|
||||||
assertEquals("1 GiB/s", RestApi.readableTransferRate(getContext(), 8589934592L));
|
|
||||||
}
|
|
||||||
|
|
||||||
public void testConvertNotCrashing() {
|
public void testConvertNotCrashing() {
|
||||||
long[] values = new long[]{-1, 0, 1, 2, 4, 8, 16, 1024, 2^10, 2^15, 2^20, 2^25, 2^30};
|
long[] values = new long[]{-1, 0, 1, 2, 4, 8, 16, 1024, 2^10, 2^15, 2^20, 2^25, 2^30};
|
||||||
|
|
Loading…
Reference in a new issue