assertEquals(items.length, array.length());
for (int i = 0, n = array.length(); i < n; ++i) {
assertEquals(items[i], array.get(i), 0.01);
}
array.sort(new CanCompareNumber() {
@Override
public int compare(double a, double b) {
return (a > b) ? -1 : (a < b) ? 1 : 0;
}
});