mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Fix: BinaryDictionaryDecayingTests."
This commit is contained in:
commit
d4520a02ee
@ -225,6 +225,7 @@ public class BinaryDictionaryDecayingTests extends AndroidTestCase {
|
|||||||
Integer.parseInt(binaryDictionary.getPropertyForTests(
|
Integer.parseInt(binaryDictionary.getPropertyForTests(
|
||||||
BinaryDictionary.UNIGRAM_COUNT_QUERY));
|
BinaryDictionary.UNIGRAM_COUNT_QUERY));
|
||||||
while (binaryDictionary.needsToRunGC(true /* mindsBlockByGC */)) {
|
while (binaryDictionary.needsToRunGC(true /* mindsBlockByGC */)) {
|
||||||
|
binaryDictionary.getPropertyForTests(SET_NEEDS_TO_DECAY_FOR_TESTING_KEY);
|
||||||
binaryDictionary.flushWithGC();
|
binaryDictionary.flushWithGC();
|
||||||
}
|
}
|
||||||
final int unigramCountAfterGC =
|
final int unigramCountAfterGC =
|
||||||
@ -291,6 +292,7 @@ public class BinaryDictionaryDecayingTests extends AndroidTestCase {
|
|||||||
Integer.parseInt(binaryDictionary.getPropertyForTests(
|
Integer.parseInt(binaryDictionary.getPropertyForTests(
|
||||||
BinaryDictionary.BIGRAM_COUNT_QUERY));
|
BinaryDictionary.BIGRAM_COUNT_QUERY));
|
||||||
while (binaryDictionary.needsToRunGC(true /* mindsBlockByGC */)) {
|
while (binaryDictionary.needsToRunGC(true /* mindsBlockByGC */)) {
|
||||||
|
binaryDictionary.getPropertyForTests(SET_NEEDS_TO_DECAY_FOR_TESTING_KEY);
|
||||||
binaryDictionary.flushWithGC();
|
binaryDictionary.flushWithGC();
|
||||||
}
|
}
|
||||||
final int bigramCountAfterGC =
|
final int bigramCountAfterGC =
|
||||||
|
Loading…
Reference in New Issue
Block a user