mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Quit using try catch in addAndWriteRandomWords.
Change-Id: I1f3137bacf02bf6bad03a9a99fa56346ff0cd763
This commit is contained in:
parent
b12c174c2f
commit
504017e6dd
@ -213,13 +213,9 @@ 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);
|
||||
}
|
||||
clearHistory(dict);
|
||||
addAndWriteRandomWords(dict, numberOfWords, random, true /* checksContents */);
|
||||
checkExistenceAndRemoveDictFile(dict, dictFile);
|
||||
}
|
||||
|
||||
public void testStressTestForSwitchingLanguagesAndAddingWords() {
|
||||
|
Loading…
Reference in New Issue
Block a user