Home
last modified time | relevance | path

Searched refs:ngramContext_b_a (Results 1 – 1 of 1) sorted by relevance

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DNgramContextTests.java57 final NgramContext ngramContext_b_a = in testGetNextNgramContext() local
59 assertEquals("b", ngramContext_b_a.getNthPrevWord(1)); in testGetNextNgramContext()
60 assertEquals("a", ngramContext_b_a.getNthPrevWord(2)); in testGetNextNgramContext()
62 ngramContext_b_a.getNextNgramContext(WordInfo.BEGINNING_OF_SENTENCE_WORD_INFO); in testGetNextNgramContext()
66 ngramContext_b_a.getNextNgramContext(new WordInfo("c")); in testGetNextNgramContext()
75 final NgramContext ngramContext_b_a = in testExtractPrevWordsContextTest() local
77 assertEquals("b", ngramContext_b_a.getNthPrevWord(1)); in testExtractPrevWordsContextTest()
78 assertEquals("a", ngramContext_b_a.getNthPrevWord(2)); in testExtractPrevWordsContextTest()
79 assertEquals("a b", ngramContext_b_a.extractPrevWordsContext()); in testExtractPrevWordsContextTest()
82 ngramContext_b_a.getNextNgramContext(WordInfo.BEGINNING_OF_SENTENCE_WORD_INFO); in testExtractPrevWordsContextTest()
[all …]