Changeset 6213 in josm for trunk/test/unit/org/openstreetmap
- Timestamp:
- 2013-09-02T01:52:34+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/tools/ExifReaderTest.java
r6210 r6213 6 6 7 7 import java.io.File; 8 import java.text.DecimalFormat; 8 9 import java.text.ParseException; 9 10 import java.util.Calendar; … … 58 59 LatLon latlon = ExifReader.readLatLon(sampleFile); 59 60 assertNotNull(latlon); 60 assertEquals("51°46'43,0\"", LatLon.dms(latlon.lat())); 61 assertEquals("8°21'56,3\"", LatLon.dms(latlon.lon())); 61 DecimalFormat f = new DecimalFormat("00.0"); 62 assertEquals("51°46'"+f.format(43.0)+"\"", LatLon.dms(latlon.lat())); 63 assertEquals("8°21'"+f.format(56.3)+"\"", LatLon.dms(latlon.lon())); 62 64 } 63 65
Note:
See TracChangeset
for help on using the changeset viewer.