Changeset 6213 in josm


Ignore:
Timestamp:
2013-09-02T01:52:34+02:00 (11 years ago)
Author:
Don-vip
Message:

fix locale issue in latest junit test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/tools/ExifReaderTest.java

    r6210 r6213  
    66
    77import java.io.File;
     8import java.text.DecimalFormat;
    89import java.text.ParseException;
    910import java.util.Calendar;
     
    5859        LatLon latlon = ExifReader.readLatLon(sampleFile);
    5960        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()));
    6264    }
    6365
Note: See TracChangeset for help on using the changeset viewer.