unitsofmeasurement / unit-tck

JSR 385 - Technology Compatibility Kit (TCK)
Other
6 stars 5 forks source link

Add further TCK tests for Prefix #18

Closed keilw closed 5 years ago

keilw commented 6 years ago

The FundamentalTypesTest already checks for prefixes,

The test description

Ensure at least one Prefix implementation is available/registered.

Should be refined, because the API already contains the two most common Prefix implementations. In addition to rephrasing it as "at least two" we may consider a type-check that MetricPrefix and BinaryPrefix are always part of that list.

In the ServicesTest for SystemOfUnitsService the method returning a Set of Prefix may also check, that MetricPrefix and BinaryPrefix are always part of the Set. And the minimum size is 2.