1
0
Fork 0
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:
Felix Ableitner 2016-04-19 15:06:11 +02:00
parent e2a12fe3d2
commit e2b9a8b813

View file

@ -75,16 +75,6 @@ public class RestApiTest extends AndroidTestCase {
public void testGetFolders() {
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() {
long[] values = new long[]{-1, 0, 1, 2, 4, 8, 16, 1024, 2^10, 2^15, 2^20, 2^25, 2^30};