Changeset 17993 in josm


Ignore:
Timestamp:
2021-07-11T03:33:21+02:00 (3 years ago)
Author:
Don-vip
Message:

see #20991 - fix unit test on systems with nanosecond precision

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/io/ValidatorErrorWriterTest.java

    r17992 r17993  
    4646                .message("Building with an almost square angle")
    4747                .primitives(new Node(LatLon.NORTH_POLE)).build()),
    48                   "  <analyser timestamp='\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z' name='Almost right angle buildings'>"
     48                  "  <analyser timestamp='\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3,9}Z' name='Almost right angle buildings'>"
    4949                + "    <class id='1' level='3'>"
    5050                + "      <classtext lang='en' title='Building with an almost square angle'/>"
     
    6666        assertTrue(xml.trim().replace("\r", "").replace("\n", "")
    6767                .matches("<\\?xml version='1.0' encoding='UTF-8'\\?>" +
    68                         "<analysers generator='JOSM' timestamp='\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z'>" +
     68                        "<analysers generator='JOSM' timestamp='\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3,9}Z'>" +
    6969                        content +
    7070                        "</analysers>"), xml);
Note: See TracChangeset for help on using the changeset viewer.