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
Browse files Browse the repository at this point in the history
Signed-off-by: Kai Kreuzer <kai@openhab.org>
  • Loading branch information
kaikreuzer committed Sep 19, 2018
1 parent 5e24e27 commit ec2d0cc
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public void shouldParseUnitFromPattern() {

@Test
public void testParsePureUnit() {
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 ec2d0cc

Please sign in to comment.