### Question:
NumberComparator implements Comparator<Object> { protected int compareRight(String a, String b) { int bias = 0; int ia = 0; int ib = 0; while (true) { char ca = charAt(a, ia); char cb = charAt(b, ib); if ((!isDigit(ca)) && (!isDigit(cb))) { return bias; } if (!isDigit(ca)) { return -1; } if (!isDigit(cb)) { return 1; } if (ca < cb) { if (bias == 0) { bias = -1; } } else if (ca > cb) { if (bias == 0) bias = 1; } else if ((ca == 0) && (cb == 0)) return bias; ia++; ib++; } }  int compare(Object o1, Object o2);  }### Answer:
@Test public void testCompareRight() { int result = comparator.compareRight("hola", "hola"); assertEquals(0, result); }