Changeset 15576 in josm


Ignore:
Timestamp:
2019-12-09T10:57:09+01:00 (18 months ago)
Author:
GerdP
Message:

see #18367: Improve unit test coverage so that NodeGraph.getMostFrequentVisitedNodesFirst() is called

Location:
trunk/test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/data/regress/18367/split-and-reverse.osm

    r15574 r15576  
    11<?xml version='1.0' encoding='UTF-8'?>
    22<osm version='0.6' generator='JOSM'>
    3   <node id='-202121' action='modify' visible='true' lat='0.03681838663' lon='0.00176729094' />
    4   <node id='-202123' action='modify' visible='true' lat='0.03673994598' lon='0.00172212813' />
    5   <node id='-202125' action='modify' visible='true' lat='0.03669478317' lon='0.00181245375' />
    6   <node id='-202127' action='modify' visible='true' lat='0.03675539641' lon='0.00186118205' />
    7   <node id='-202129' action='modify' visible='true' lat='0.03645589572' lon='0.00185761657' />
    8   <way id='-202132' action='modify' visible='true'>
    9     <nd ref='-202121' />
    10     <nd ref='-202123' />
    11     <nd ref='-202125' />
    12     <nd ref='-202127' />
    13     <nd ref='-202121' />
     3  <node id='-202210' action='modify' visible='true' lat='0.03724777429' lon='0.00134787612' />
     4  <node id='-202211' action='modify' visible='true' lat='0.0369372941' lon='0.00121974141' />
     5  <node id='-202213' action='modify' visible='true' lat='0.03659724436' lon='0.0012788805' />
     6  <node id='-202215' action='modify' visible='true' lat='0.03655535417' lon='0.00153022166' />
     7  <node id='-202219' action='modify' visible='true' lat='0.03690332323' lon='0.00143858567' />
     8  <node id='-202221' action='modify' visible='true' lat='0.03688801153' lon='0.00129366528' />
     9  <node id='-202223' action='modify' visible='true' lat='0.03677219748' lon='0.00135034025' />
     10  <node id='-202225' action='modify' visible='true' lat='0.03689699597' lon='0.00137870018' />
     11  <way id='-202212' action='modify' visible='true'>
     12    <nd ref='-202210' />
     13    <nd ref='-202211' />
     14    <nd ref='-202213' />
     15    <nd ref='-202215' />
     16    <nd ref='-202219' />
     17    <nd ref='-202210' />
    1418  </way>
    15   <way id='-202133' action='modify' visible='true'>
    16     <nd ref='-202125' />
    17     <nd ref='-202129' />
     19  <way id='-202222' action='modify' visible='true'>
     20    <nd ref='-202219' />
     21    <nd ref='-202225' />
     22    <nd ref='-202221' />
     23    <nd ref='-202223' />
     24    <nd ref='-202225' />
    1825  </way>
    1926</osm>
  • trunk/test/unit/org/openstreetmap/josm/actions/CombineWayActionTest.java

    r15574 r15576  
    129129            DataSet ds = OsmReader.parseDataSet(is, null);
    130130            ArrayList<Way> selection = new ArrayList<>(ds.getWays());
    131             assertEquals(2, selection.size());
    132131            double expectedLen = getOriginalLength(selection);
    133132            List<Node> path = CombineWayAction.tryJoin(selection);
Note: See TracChangeset for help on using the changeset viewer.