HomeSort by relevance Sort by last modified time
    Searched refs:expectedIndex (Results 1 - 11 of 11) sorted by null

  /packages/inputmethods/LatinIME/native/jni/tests/utils/
int_array_view_test.cpp 38 size_t expectedIndex = 0;
40 EXPECT_EQ(intVector[expectedIndex], element);
41 ++expectedIndex;
43 EXPECT_EQ(expectedIndex, intArrayView.size());
  /external/smali/util/src/test/java/org/jf/util/
LinearSearchTest.java 97 int expectedIndex = Ordering.natural().binarySearch(list, key);
99 Assert.assertEquals(expectedIndex, LinearSearch.linearSearch(list, Ordering.<Integer>natural(), key, guess));
  /packages/apps/ContactsCommon/tests/src/com/android/contacts/common/format/
FormatUtilsTests.java 109 * @param expectedIndex the expected value to be returned by the function
111 private void checkIndexOfWordPrefix(String text, String wordPrefix, int expectedIndex) {
112 assertEquals(expectedIndex, FormatUtils.indexOfWordPrefix(text, wordPrefix));
  /external/icu/icu4c/source/test/intltest/
utxttest.cpp 601 int64_t expectedIndex = 0;
608 expectedIndex = cpMap[i].nativeIdx;
610 TEST_ASSERT(expectedIndex == foundIndex);
615 TEST_ASSERT(expectedIndex == foundIndex);
626 expectedIndex = cpMap[i].nativeIdx;
628 TEST_ASSERT(expectedIndex == foundIndex);
654 expectedIndex = cpMap[i].nativeIdx;
658 TEST_ASSERT(expectedIndex == foundIndex);
688 expectedIndex = cpMap[i].nativeIdx;
691 TEST_ASSERT(expectedIndex == foundIndex)
    [all...]
rbbitst.cpp 220 int32_t expectedIndex = 0;
226 if (expectedIndex >= fExpectedBreakPositions.size() &&
232 if (expectedIndex >= fExpectedBreakPositions.size()) {
233 err(heading, test, expectedIndex-1, actualIndex);
239 err(heading, test, expectedIndex, actualIndex-1);
240 expectedIndex++;
244 if (fActualBreakPositions.elementAti(actualIndex) != fExpectedBreakPositions.elementAti(expectedIndex)) {
245 err(heading, test, expectedIndex, actualIndex);
247 if (fActualBreakPositions.elementAti(actualIndex) < fExpectedBreakPositions.elementAti(expectedIndex)) {
250 expectedIndex++
    [all...]
  /external/chromium_org/third_party/icu/source/test/intltest/
utxttest.cpp 601 int64_t expectedIndex = 0;
608 expectedIndex = cpMap[i].nativeIdx;
610 TEST_ASSERT(expectedIndex == foundIndex);
615 TEST_ASSERT(expectedIndex == foundIndex);
626 expectedIndex = cpMap[i].nativeIdx;
628 TEST_ASSERT(expectedIndex == foundIndex);
654 expectedIndex = cpMap[i].nativeIdx;
658 TEST_ASSERT(expectedIndex == foundIndex);
688 expectedIndex = cpMap[i].nativeIdx;
691 TEST_ASSERT(expectedIndex == foundIndex)
    [all...]
rbbitst.cpp 222 int32_t expectedIndex = 0;
228 if (expectedIndex >= fExpectedBreakPositions.size() &&
234 if (expectedIndex >= fExpectedBreakPositions.size()) {
235 err(heading, test, expectedIndex-1, actualIndex);
241 err(heading, test, expectedIndex, actualIndex-1);
242 expectedIndex++;
246 if (fActualBreakPositions.elementAti(actualIndex) != fExpectedBreakPositions.elementAti(expectedIndex)) {
247 err(heading, test, expectedIndex, actualIndex);
249 if (fActualBreakPositions.elementAti(actualIndex) < fExpectedBreakPositions.elementAti(expectedIndex)) {
252 expectedIndex++
    [all...]
  /external/chromium_org/third_party/WebKit/Tools/GardeningServer/scripts/
base.js 34 var expectedIndex = string.length - suffix.length;
35 return string.lastIndexOf(suffix) == expectedIndex;
  /external/icu/icu4c/source/test/cintltst/
utf16tst.c 353 int32_t i0, i=0, j, k, expectedIndex;
371 expectedIndex= (c==0) ? i-1 : i;
374 if(k!=expectedIndex) {
375 log_err("U16_FWD_N(code points from 0) moved to index %d but expected %d\n", k, expectedIndex);
utf8tst.c 416 int32_t i0, i=0, j, k, expectedIndex;
444 expectedIndex= (c==0) ? i-1 : i;
447 if(k!=expectedIndex) {
448 log_err("U8_FWD_N(code points from 0) moved to index %d but expected %d\n", k, expectedIndex);
    [all...]
  /external/guava/guava-tests/test/com/google/common/collect/
MultimapsTest.java 751 final Multimap<Integer, String> expectedIndex =
773 assertEquals(expectedIndex, index);
    [all...]

Completed in 598 milliseconds