mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-26 09:37:33 +01:00
fix obvious copy&paste error in tests
This commit is contained in:
parent
858eaa6690
commit
4a3eb6e8de
@ -25,7 +25,7 @@ public class LanguageUtilsTest extends TestBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testStringTransliterateCyrillic() throws Exception {
|
public void testStringTransliterateHebrew() throws Exception {
|
||||||
//input with cyrillic and diacritic letters
|
//input with cyrillic and diacritic letters
|
||||||
String input = "בדיקה עברית";
|
String input = "בדיקה עברית";
|
||||||
String output = LanguageUtils.transliterate(input);
|
String output = LanguageUtils.transliterate(input);
|
||||||
@ -41,7 +41,7 @@ public class LanguageUtilsTest extends TestBase {
|
|||||||
SharedPreferences settings = GBApplication.getPrefs().getPreferences();
|
SharedPreferences settings = GBApplication.getPrefs().getPreferences();
|
||||||
SharedPreferences.Editor editor = settings.edit();
|
SharedPreferences.Editor editor = settings.edit();
|
||||||
editor.putBoolean("transliteration", true);
|
editor.putBoolean("transliteration", true);
|
||||||
editor.commit();
|
editor.apply();
|
||||||
|
|
||||||
assertTrue("Transliteration option fail! Expected 'On', but result is 'Off'", LanguageUtils.transliterate());
|
assertTrue("Transliteration option fail! Expected 'On', but result is 'Off'", LanguageUtils.transliterate());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user