Rename and enable old test

This commit is contained in:
Gary Gregory 2024-05-25 09:37:14 -04:00
parent b5dd57397e
commit 2b0c0b9bc8
1 changed files with 12 additions and 9 deletions

View File

@ -523,15 +523,18 @@ public class DurationFormatUtilsTest extends AbstractLangTest {
new int[] { 2006, 9, 6, 0, 0, 0 }, "MM");
}
// Takes a minute to run, so generally turned off
// public void testBrutally() {
// Calendar c = Calendar.getInstance();
// c.set(2004, 0, 1, 0, 0, 0);
// for (int i=0; i < FOUR_YEARS; i++) {
// bruteForce(c.get(Calendar.YEAR), c.get(Calendar.MONTH), c.get(Calendar.DAY_OF_MONTH), "d", Calendar.DAY_OF_MONTH );
// c.add(Calendar.DAY_OF_MONTH, 1);
// }
// }
/**
* Takes 8 seconds to run.
*/
@Test
public void testFourYears() {
Calendar c = Calendar.getInstance();
c.set(2004, 0, 1, 0, 0, 0);
for (int i = 0; i < FOUR_YEARS; i++) {
bruteForce(c.get(Calendar.YEAR), c.get(Calendar.MONTH), c.get(Calendar.DAY_OF_MONTH), "d", Calendar.DAY_OF_MONTH);
c.add(Calendar.DAY_OF_MONTH, 1);
}
}
@Test
public void testLANG815() {