Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

Commit

Permalink
added test for imperial unit parsing (#6236)
Browse files Browse the repository at this point in the history
Signed-off-by: Kai Kreuzer <kai@openhab.org>
  • Loading branch information
kaikreuzer authored and maggu2810 committed Sep 20, 2018
1 parent 2dc6353 commit aefe844
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -69,6 +69,7 @@ public void shouldParseUnitFromPattern() {
@Test
public void testParsePureUnit() {
assertThat(UnitUtils.parseUnit("DU"), is(SmartHomeUnits.DOBSON_UNIT));
assertThat(UnitUtils.parseUnit("°F"), is(ImperialUnits.FAHRENHEIT));
assertThat(UnitUtils.parseUnit("m"), is(SIUnits.METRE));
assertThat(UnitUtils.parseUnit("%"), is(SmartHomeUnits.PERCENT));
}
Expand Down

0 comments on commit aefe844

Please sign in to comment.