Changeset 21609 in osm for applications


Ignore:
Timestamp:
2010-06-07T23:13:48+02:00 (15 years ago)
Author:
tordanik
Message:

update tests to match non-integer parsing of maxspeeds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/graphview/test/org/openstreetmap/josm/plugins/graphview/core/property/RoadMaxspeedTest.java

    r16520 r21609  
    1313        public void testEvaluate_numeric() {
    1414                testMaxspeed(30, "30");
    15                 testMaxspeed(48, "48.28");
     15                testMaxspeed(48.3f, "48.3");
    1616        }
    1717
     
    2525        @Test
    2626        public void testEvaluate_mph() {
    27                 testMaxspeed(72, "45 mph");
    28                 testMaxspeed(64, "40mph");
    29                 testMaxspeed(24, "15    mph");
     27                testMaxspeed(72.42048f, "45 mph");
     28                testMaxspeed(64.373764f, "40mph");
     29                testMaxspeed(24.14016f, "15     mph");
    3030        }
    3131
Note: See TracChangeset for help on using the changeset viewer.