Home
last modified time | relevance | path

Searched refs:units (Results 1 – 2 of 2) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKPeriod.java1138 List<TemporalUnit> units = period.getUnits(); in test_Period_getUnits() local
1139 assertEquals(units.size(), 3, "Period.getUnits should return 3 units"); in test_Period_getUnits()
1140 assertEquals(units.get(0), ChronoUnit.YEARS, "Period.getUnits contains ChronoUnit.YEARS"); in test_Period_getUnits()
1141 assertEquals(units.get(1), ChronoUnit.MONTHS, "Period.getUnits contains ChronoUnit.MONTHS"); in test_Period_getUnits()
1142 assertEquals(units.get(2), ChronoUnit.DAYS, "Period.getUnits contains ChronoUnit.DAYS"); in test_Period_getUnits()
DTCKDuration.java3080 List<TemporalUnit> units = duration.getUnits(); in test_duration_getUnits() local
3081 assertEquals(units.size(), 2, "Period.getUnits length"); in test_duration_getUnits()
3082 … assertTrue(units.contains(ChronoUnit.SECONDS), "Period.getUnits contains ChronoUnit.SECONDS"); in test_duration_getUnits()
3083 assertTrue(units.contains(ChronoUnit.NANOS), "contains ChronoUnit.NANOS"); in test_duration_getUnits()