mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
am 82fa755b: Fix unit tests by adding @UsedForTesting
* commit '82fa755bac1effec15bc50517c50d12de99d0fd6': Fix unit tests by adding @UsedForTesting
This commit is contained in:
commit
66bbcbcccd
@ -373,8 +373,7 @@ public final class BinaryDictionary extends Dictionary {
|
|||||||
return getProbabilityNative(mNativeDict, codePoints);
|
return getProbabilityNative(mNativeDict, codePoints);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Add a batch process version (isValidBigramMultiple?) to avoid excessive numbers of jni
|
@UsedForTesting
|
||||||
// calls when checking for changes in an entire dictionary.
|
|
||||||
public boolean isValidBigram(final String word0, final String word1) {
|
public boolean isValidBigram(final String word0, final String word1) {
|
||||||
return getBigramProbability(word0, word1) != NOT_A_PROBABILITY;
|
return getBigramProbability(word0, word1) != NOT_A_PROBABILITY;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user