Changeset 14085 in josm for trunk/test


Ignore:
Timestamp:
2018-08-04T20:26:51+02:00 (6 years ago)
Author:
Don-vip
Message:

fix #16557 - drop east/west/north/south roles reversion. No one knows why we added it in the first place

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/corrector/ReverseWayTagCorrectorTest.java

    r11921 r14085  
    6262        assertSwitch(new Tag("direction", "forward"), new Tag("direction", "backward"));
    6363        assertSwitch(new Tag("direction", "backward"), new Tag("direction", "forward"));
    64         assertSwitch(new Tag("direction", "north"), new Tag("direction", "south"));
    6564        // :left/:right with oneway (see #10977)
    6665        assertSwitch(new Tag("cycleway:left:oneway", "-1"), new Tag("cycleway:right:oneway", "yes"));
     
    7675        assertSwitch(new Tag("up", "something"), new Tag("down", "something"));
    7776        assertSwitch(new Tag("down", "something"), new Tag("up", "something"));
    78         assertSwitch(new Tag("east", "something"), new Tag("west", "something"));
    79         assertSwitch(new Tag("west", "something"), new Tag("east", "something"));
    80         assertSwitch(new Tag("south", "something"), new Tag("north", "something"));
    81         assertSwitch(new Tag("north", "something"), new Tag("south", "something"));
    8277        // values
    8378        assertSwitch(new Tag("something", "forward"), new Tag("something", "backward"));
     
    8580        assertSwitch(new Tag("something", "up"), new Tag("something", "down"));
    8681        assertSwitch(new Tag("something", "down"), new Tag("something", "up"));
    87         assertSwitch(new Tag("something", "east"), new Tag("something", "west"));
    88         assertSwitch(new Tag("something", "west"), new Tag("something", "east"));
    89         assertSwitch(new Tag("something", "south"), new Tag("something", "north"));
    90         assertSwitch(new Tag("something", "north"), new Tag("something", "south"));
    9182        // value[:_]suffix
    9283        assertSwitch(new Tag("something", "forward:suffix"), new Tag("something", "backward:suffix"));
     
    9485        assertSwitch(new Tag("something", "up:suffix"), new Tag("something", "down:suffix"));
    9586        assertSwitch(new Tag("something", "down_suffix"), new Tag("something", "up_suffix"));
    96         assertSwitch(new Tag("something", "east:suffix"), new Tag("something", "west:suffix"));
    97         assertSwitch(new Tag("something", "west_suffix"), new Tag("something", "east_suffix"));
    98         assertSwitch(new Tag("something", "south:suffix"), new Tag("something", "north:suffix"));
    99         assertSwitch(new Tag("something", "north_suffix"), new Tag("something", "south_suffix"));
    10087        // prefix[:_]value
    10188        assertSwitch(new Tag("something", "prefix:forward"), new Tag("something", "prefix:backward"));
     
    10390        assertSwitch(new Tag("something", "prefix:up"), new Tag("something", "prefix:down"));
    10491        assertSwitch(new Tag("something", "prefix_down"), new Tag("something", "prefix_up"));
    105         assertSwitch(new Tag("something", "prefix:east"), new Tag("something", "prefix:west"));
    106         assertSwitch(new Tag("something", "prefix_west"), new Tag("something", "prefix_east"));
    107         assertSwitch(new Tag("something", "prefix:south"), new Tag("something", "prefix:north"));
    108         assertSwitch(new Tag("something", "prefix_north"), new Tag("something", "prefix_south"));
    10992        // prefix[:_]value[:_]suffix
    11093        assertSwitch(new Tag("something", "prefix:forward:suffix"), new Tag("something", "prefix:backward:suffix"));
     
    11295        assertSwitch(new Tag("something", "prefix:up_suffix"), new Tag("something", "prefix:down_suffix"));
    11396        assertSwitch(new Tag("something", "prefix_down_suffix"), new Tag("something", "prefix_up_suffix"));
    114         assertSwitch(new Tag("something", "prefix:east:suffix"), new Tag("something", "prefix:west:suffix"));
    115         assertSwitch(new Tag("something", "prefix_west:suffix"), new Tag("something", "prefix_east:suffix"));
    116         assertSwitch(new Tag("something", "prefix:south_suffix"), new Tag("something", "prefix:north_suffix"));
    117         assertSwitch(new Tag("something", "prefix_north_suffix"), new Tag("something", "prefix_south_suffix"));
    11897        // #8499
    11998        assertSwitch(new Tag("type", "drawdown"), new Tag("type", "drawdown"));
Note: See TracChangeset for help on using the changeset viewer.