Changeset 8251 in josm for trunk/test/unit/org
- Timestamp:
- 2015-04-23T19:06:39+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/util/RotationAngleTest.java
r8199 r8251 21 21 22 22 @Test 23 public void testParseGrad() throws Exception { 24 assertThat(RotationAngle.buildStaticRotation("200grad").getRotationAngle(null), is(Math.PI)); 25 assertThat(RotationAngle.buildStaticRotation("100grad").getRotationAngle(null), is(Math.PI / 2)); 26 assertThat(RotationAngle.buildStaticRotation("400grad").getRotationAngle(null), is(Math.PI * 2)); 27 } 28 29 @Test 30 public void testParseTurn() throws Exception { 31 assertThat(RotationAngle.buildStaticRotation("0.5turn").getRotationAngle(null), is(Math.PI)); 32 assertThat(RotationAngle.buildStaticRotation("0.25turn").getRotationAngle(null), is(Math.PI / 2)); 33 assertThat(RotationAngle.buildStaticRotation("1turn").getRotationAngle(null), is(Math.PI * 2)); 34 } 35 36 @Test 23 37 public void testParseCardinal() throws Exception { 24 38 assertThat(RotationAngle.buildStaticRotation("south").getRotationAngle(null), is(Math.PI));
Note:
See TracChangeset
for help on using the changeset viewer.