Changeset 16968 in josm for trunk/test


Ignore:
Timestamp:
2020-08-29T17:44:57+02:00 (4 years ago)
Author:
simon04
Message:

fix #14200 - Warn when moving elements by a large distance

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/command/MoveCommandTest.java

    r14120 r16968  
    7777        assertEquals("east", 1, moveCommand.getOffset().east(), 0.0001);
    7878        assertEquals("north", 2, moveCommand.getOffset().north(), 0.0001);
     79        assertEquals("distance", 2.236068, moveCommand.getDistance(n -> true), 0.0001);
    7980    }
    8081
     
    8990        assertEquals("east", 4, testData.existingNode.getEastNorth().east(), 0.0001);
    9091        assertEquals("north", 9, testData.existingNode.getEastNorth().north(), 0.0001);
     92        assertEquals("distance", 2.236068, command.getDistance(n -> true), 0.0001);
    9193    }
    9294
Note: See TracChangeset for help on using the changeset viewer.