mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Add a test for umlauts
Change-Id: I2c15e9dc7a1cf846c92a1900d68f661aa70e77b9
This commit is contained in:
parent
8abde7db6b
commit
f338f8b50d
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
package com.android.inputmethod.latin;
|
package com.android.inputmethod.latin;
|
||||||
|
|
||||||
public class InputLogicFrenchTests extends InputTestsBase {
|
public class InputLogicTestsNonEnglish extends InputTestsBase {
|
||||||
|
|
||||||
public void testAutoCorrectForFrench() {
|
public void testAutoCorrectForFrench() {
|
||||||
final String STRING_TO_TYPE = "irq ";
|
final String STRING_TO_TYPE = "irq ";
|
||||||
@ -54,4 +54,22 @@ public class InputLogicFrenchTests extends InputTestsBase {
|
|||||||
assertEquals("type word then type space then punctuation from strip twice for French",
|
assertEquals("type word then type space then punctuation from strip twice for French",
|
||||||
EXPECTED_RESULT, mTextView.getText().toString());
|
EXPECTED_RESULT, mTextView.getText().toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void testAutoCorrectForGerman() {
|
||||||
|
final String STRING_TO_TYPE = "unf ";
|
||||||
|
final String EXPECTED_RESULT = "und ";
|
||||||
|
changeLanguage("de");
|
||||||
|
type(STRING_TO_TYPE);
|
||||||
|
assertEquals("simple auto-correct for German", EXPECTED_RESULT,
|
||||||
|
mTextView.getText().toString());
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testAutoCorrectWithUmlautForGerman() {
|
||||||
|
final String STRING_TO_TYPE = "ueber ";
|
||||||
|
final String EXPECTED_RESULT = "über ";
|
||||||
|
changeLanguage("de");
|
||||||
|
type(STRING_TO_TYPE);
|
||||||
|
assertEquals("auto-correct with umlaut for German", EXPECTED_RESULT,
|
||||||
|
mTextView.getText().toString());
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user