Changeset 16673 in josm for trunk/test/unit
- Timestamp:
- 2020-06-17T21:47:19+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/osm/BBoxTest.java
r15877 r16673 166 166 167 167 /** 168 * Unit test of {@link BBox#height} and {@link BBox#width} methods.168 * Unit test of {@link BBox#height} and {@link BBox#width} and {@link BBox#area} methods. 169 169 */ 170 170 @Test 171 public void testHeightWidth () {171 public void testHeightWidthArea() { 172 172 BBox b1 = new BBox(1, 2, 3, 5); 173 173 assertEquals(2, b1.width(), 1e-7); 174 174 assertEquals(3, b1.height(), 1e-7); 175 assertEquals(6, b1.area(), 1e-7); 175 176 BBox b2 = new BBox(); 176 177 assertEquals(0, b2.width(), 1e-7); 177 178 assertEquals(0, b2.height(), 1e-7); 179 assertEquals(0, b2.area(), 1e-7); 178 180 } 179 181
Note:
See TracChangeset
for help on using the changeset viewer.