mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
am 230b343e: Merge "Quit using try catch in addAndWriteRandomWords."
* commit '230b343e8cb8b62b3779967d030a1c90c17d1ee3': Quit using try catch in addAndWriteRandomWords.
This commit is contained in:
commit
4a7254e12e
@ -213,14 +213,10 @@ public class UserHistoryDictionaryTests extends AndroidTestCase {
|
||||
|
||||
final int numberOfWords = 1000;
|
||||
final Random random = new Random(123456);
|
||||
|
||||
try {
|
||||
clearHistory(dict);
|
||||
addAndWriteRandomWords(dict, numberOfWords, random, true /* checksContents */);
|
||||
} finally {
|
||||
checkExistenceAndRemoveDictFile(dict, dictFile);
|
||||
}
|
||||
}
|
||||
|
||||
public void testStressTestForSwitchingLanguagesAndAddingWords() {
|
||||
final int numberOfLanguages = 2;
|
||||
|
Loading…
x
Reference in New Issue
Block a user