示例#1
0
 private void compare() {
   if (typeAdapter.equals(expected, result)) {
     right(cell);
   } else {
     wrong(cell, typeAdapter.toString(result));
   }
 }
示例#2
0
 public boolean equals(Object a, Object b) {
   int length = Array.getLength(a);
   if (length != Array.getLength(b)) return false;
   for (int i = 0; i < length; i++) {
     if (!componentAdapter.equals(Array.get(a, i), Array.get(b, i))) return false;
   }
   return true;
 }