Changeset 11272 in josm for trunk/test/unit/org/openstreetmap
- Timestamp:
- 2016-11-17T21:00:49+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/osm/BBoxTest.java
r11269 r11272 52 52 assertTrue(b1.bounds(b2)); 53 53 54 // invalid latlon values55 LatLon invalid1= new LatLon(-190, 340);56 BBox b3 = new BBox( invalid1, latLon1);57 BBox b4 = new BBox(latLon1, invalid1);58 BBox b5 = new BBox( invalid1, invalid1);59 // what should be the result? 54 // outside of world latlon values 55 LatLon outOfWorld = new LatLon(-190, 340); 56 BBox b3 = new BBox(outOfWorld, latLon1); 57 BBox b4 = new BBox(latLon1, outOfWorld); 58 BBox b5 = new BBox(outOfWorld, outOfWorld); 59 60 60 assertTrue(b3.isValid()); 61 61 assertTrue(b4.isValid()); … … 63 63 assertTrue(b4.bounds(latLon1)); 64 64 assertTrue(b5.isValid()); 65 assertFalse(b3.isInWorld()); 66 assertFalse(b4.isInWorld()); 65 67 assertFalse(b5.isInWorld()); 66 68 }
Note:
See TracChangeset
for help on using the changeset viewer.