mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-25 11:26:47 +01:00
Fix unit tests
This commit is contained in:
parent
34039094c1
commit
096358c76f
@ -53,9 +53,9 @@ public class XiaomiActivityFileIdTest {
|
|||||||
assertEquals(1697182497000L, expectedFileId.getTimestamp().getTime());
|
assertEquals(1697182497000L, expectedFileId.getTimestamp().getTime());
|
||||||
assertEquals(4, expectedFileId.getTimezone());
|
assertEquals(4, expectedFileId.getTimezone());
|
||||||
assertEquals(3, expectedFileId.getVersion());
|
assertEquals(3, expectedFileId.getVersion());
|
||||||
assertEquals(1, expectedFileId.getType());
|
assertEquals(XiaomiActivityFileId.Type.SPORTS, expectedFileId.getType());
|
||||||
assertEquals(8, expectedFileId.getSubtype());
|
assertEquals(XiaomiActivityFileId.Subtype.SPORTS_FREESTYLE, expectedFileId.getSubtype());
|
||||||
assertEquals(0, expectedFileId.getDetailType());
|
assertEquals(XiaomiActivityFileId.DetailType.DETAILS, expectedFileId.getDetailType());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -195,7 +195,7 @@ public class LanguageUtilsTest extends TestBase {
|
|||||||
|
|
||||||
String input = "á é í ó ö ő ü ű";
|
String input = "á é í ó ö ő ü ű";
|
||||||
String output = transliterator.transliterate(input);
|
String output = transliterator.transliterate(input);
|
||||||
String expected = "a e i o o u u";
|
String expected = "a e i o o o u u";
|
||||||
assertEquals("hungarian transliteration failed", expected, output);
|
assertEquals("hungarian transliteration failed", expected, output);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user