int len = tests.length;
for (int index = 0; index < len; index++) {
DateTest dateTest = tests[index];
long startMillis = dateTest.date1.toMillis(false /* use isDst */);
long endMillis = dateTest.date2.toMillis(false /* use isDst */);
int flags = dateTest.flags;
String output = DateUtils.formatDateRange(mContext, startMillis, endMillis, flags);
if (!dateTest.expectedOutput.equals(output)) {
Log.i("FormatDateRangeTest", "index " + index
+ " expected: " + dateTest.expectedOutput
+ " actual: " + output);
}
assertEquals(dateTest.expectedOutput, output);
}